I am using Matlab 2016a, Win10. How can I solve this problem? Thanks in advance!
Hello everyone.
I am having the same issue. I put the license in:
C:\Users\alexandre.oliveira\Documents\MATLAB\lic-snopt\snopt-matlab-2.5.0\matlab
>> setenv('SNOPT_LICENSE','C:\Users\alexandre.oliveira\Documents\MATLAB\lic-snopt\snopt-matlab-2.5.0\matlab\snopt7.lic')
>> getenv('SNOPT_LICENSE')
ans =
C:\Users\alexandre.oliveira\Documents\MATLAB\lic-snopt\snopt-matlab-2.5.0\matlab\snopt7.lic
>> runNPexamples
=============================================================
sntoy: Solving diet LP problem using SNOPT ...
Begin t1diet problem
SNSPEC EXIT 100 -- finished successfully
SNSPEC INFO 101 -- SPECS file read
Trial version of SNOPT -- for evaluation or academic purposes only
Error using snoptmex
XXX Please set SNOPT_LICENSE to the the license file
Error in snopt (line 294)
xstate,Fstate,itn,mjritn] = snoptmex(solveopt, ...
Error in t1diet (line 12)
[x,F,INFO,xmul,Fmul,xstate,Fstate,output]= snopt( x, xlow, xupp, xmul, xstate, ...
Error in runNPexamples (line 10)
[x,xmul,F,Fmul,info] = t1diet;
I think it is the same problem that you are having.
Thanks in advance for any help in fixing this issue.
Att.
Alexandre Oliveira.
Yeah it is the same problem as mine. I did getenv('SNOPT_LICENSE') and I got the right directory back. The message I got after running 'runNPexamples' is exactly the same with Alexandre Oliveira's.
I wonder if this is because I did not install some other toolboxes?
--
You received this message because you are subscribed to a topic in the Google Groups "SNOPT" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/snopt/SWV0gKj4Nis/unsubscribe.
To unsubscribe from this group and all its topics, send an email to snopt+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I got the same error. I am also using R2016a. Could the problem be the matlab version?