snopt / snopt-matlab

Matlab interface for sparse nonlinear optimizer SNOPT
MIT License
55 stars 23 forks source link

reading snspec through snsolve interface not working in v3.0 #15

Closed sh-cau closed 4 years ago

sh-cau commented 4 years ago

When calling info = snspec(specsfile) in snsolve, the command line outputs that my specsfile was successfully read but the info variable is 0 when it should be either 101 or 107 and subsequently end_snopt() is called. I hotfixed this issue with if info == 0 info = 101; end

gnowzil commented 4 years ago

Updated mex-files shouldn't be doing this. What version of SNOPT does it say at the top of a run?

sh-cau commented 4 years ago

Sorry, I am using snopt v7.6.

gnowzil commented 4 years ago

You might want to get an updated mex-file. It should fix this bug :-)

https://ccom.ucsd.edu/~optimizers/downloads/