Question: LSSolve -- Invalid optional parameter or workspace size

Hallo, I have a problem with LSSolve that is quite strange. When I give the command Optimization:-LSSolve( e ); I get the error "invalid optional parameter or workspace size", while if I send the same problem data to the other solvers, ie, as Optimization:-Minimize( e^2 ); or as Optimization:-NLPSolve( e^2 ); it seems to work, despite the fact that the same solution method is used (method = modifiednewton). The problem does also depend on the size of the problem. If e is small and contains only 4 variables it works with all the solvers, but if it contains 6 variables or more LSSolve doesn't. Has anyone experienced this problem before? Thanks in advance! / Johan
Please Wait...