some error of snopt in matlab

35 views
Skip to first unread message

bao hanqiu

unread,
Apr 27, 2023, 2:35:57 AM4/27/23
to SNOPT
Hi,
there exist a error of using snopt in yalmip
how can i handle it

This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.
** This crash report has been saved to disk as C:\Users\bhq\AppData\Local\Temp\matlab_crash_dump.8852-1 **

bao hanqiu

unread,
Apr 27, 2023, 2:40:04 AM4/27/23
to SNOPT
when i run the code: Npexamples
I get 
'userfun' must be a string.
出错 snJac (line 7)
[A,iAfun,jAvar,iGfun,jGvar] = snoptcmex(findJacOption,usrfun,x0,xlow,xupp,nF);
出错 snopt (line 456)
  [valA,iAfun,jAvar,iGfun,jGvar] = snJac(userFG,x,xlow,xupp,nF);
出错 sntoy2 (line 30)
[x,F,inform] = snopt(x,xlow,xupp,xmul,xstate, ...
出错 runNPexamples (line 24)
sntoy2; 




when i run the code: Qpexamples
I get
错误使用 sqoptmex
Invalid license
出错 solve_sqopt (line 13)
[x,obj,info,itn,y,state] = sqoptmex(mexopt, start, name, ...
出错 sqopt (line 332)
[x,obj,info,output,lambda,states] = solve_sqopt(start, name, ...
出错 hs76 (line 52)
[x,Obj,INFO,lambda,states,output] = sqopt(H, f, x0, xl, xu, A, al, au, options);
出错 runQPexamples (line 8)
hs76; 

But I download the licenses form the email you send me
How can I handle this problem
Reply all
Reply to author
Forward
0 new messages