snopt / snopt-matlab

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

Unrecognized function or variable 'sqoptmex' #13

Closed guzhaoyuan closed 4 years ago

guzhaoyuan commented 4 years ago

I got the snoptmex.mexa64 and used it in Matlab R2019b.

I could run runNPexamples, the program could solve and get results.

But when I run runQPexamples, the program fail with the following error.

Unrecognized function or variable 'sqoptmex'.
Error in sqscreen (line 18)
  sqoptmex( screenon );
Error in runQPexamples (line 6)
sqscreen on 
gnowzil commented 4 years ago

Do you have the sqopt mexfile and is it in a directory on your path?

guzhaoyuan commented 4 years ago

I don't have sqopt. I thought it was included in the snopt mexfile. Do I need to file a separate request for sqopt?

gnowzil commented 4 years ago

You can pass QPs through SNOPT, which should detect it and call SQOPT. However, if you want to explicitly use SQOPT through matlab, you'll need to get sqoptmex as well.

(I've updated your download request so if you go back to our downloads page, you should see SQOPT).

guzhaoyuan commented 4 years ago

Thanks, I saw the SQOPT now. But when I click on the download button, it tells me that license key not found. Capture

gnowzil commented 4 years ago

should be fixed now. sorry about that!

guzhaoyuan commented 4 years ago

Thank you it works now.