Reference to non-existent field 'sol'.

55 views
Skip to first unread message

Scott

unread,
Sep 24, 2018, 3:13:17 AM9/24/18
to YALMIP
Dear Johan Löfberg:
     I run my code successfully yesterday, and I didn't modify my code. However, I run my code again today, it failed. The Matlab gave following error information, and I don't know what happen. I have never been met this case. 
 
Reference to non-existent field 'sol'.

Error in callmosek>MosekYALMIPError (line 238)
switch res.sol.itr.prosta

Error in callmosek>call_mosek_lpqpsocpsdpdual (line 213)
problem = MosekYALMIPError(res);

Error in callmosek>call_mosek_lpqpsocpsdp (line 81)
    [x,D_struc,problem,r,res,solvertime,prob] = call_mosek_lpqpsocpsdpdual(model);

Error in callmosek (line 51)
    [x,D_struc,problem,r,res,solvertime,prob] = call_mosek_lpqpsocpsdp(model);

Error in optimizer/subsref (line 326)
                eval(['output = ' self.model.solver.call '(self.model);']);

Error in cantelli_lmi (line 148)
    [solutions, diagnostics] = controller{inputs};

 Best regards

Scott

Johan Löfberg

unread,
Sep 24, 2018, 3:48:20 AM9/24/18
to YALMIP
If you still have completely the same etup regarding paths etc, my guess is your license experied

Run mosekdiag

Scott

unread,
Sep 24, 2018, 4:33:20 AM9/24/18
to YALMIP
Yes,I am completely sure that all the setup are the same. 
When I run 'mosekdiag' :
......
MOSEK Version 8.0.0.60 (Build date: 2017-3-1 13:09:33)
Copyright (c) MOSEK ApS, Denmark. WWW: mosek.com
Platform: Windows/64-X86

Mosek error: MSK_RES_ERR_LICENSE_EXPIRED (The license has expired.)
Error using mosekdiag (line 58)
mosekopt returned an error: 1001. [MSK_RES_ERR_LICENSE_EXPIRED]
 

I think your are right, it seems my license is overdue.  I will try to reapply one and update it.

Johan Löfberg

unread,
Sep 24, 2018, 4:37:17 AM9/24/18
to YALMIP
BTW, are you running a recent update of YALMIP? I though I added code to catch license error in mosek in the june release and report about this as an error code

Scott

unread,
Sep 24, 2018, 4:44:26 AM9/24/18
to YALMIP
Thank you, Mr. Löfberg

Actually I don't update to a latest version of YALMIP. The version that I currently use is  201718. 

So, should I update both of YALMIP and Mosek, or just update the YAMLIP?


Scott

unread,
Sep 24, 2018, 4:57:06 AM9/24/18
to YALMIP
BTW, when I update the YALMIP, should I remove the all package of YALMIP, then download and install a latest one?

Does any routine can cover the original one, instead of reinstall it?

Johan Löfberg

unread,
Sep 24, 2018, 5:02:55 AM9/24/18
to YALMIP
Well, you have to update your mosek license.

YALMIP is always recommended to run latest version. Next time Moseks license runs out, YAMIP will tell you this, if you use the latest version of YALMIP

Johan Löfberg

unread,
Sep 24, 2018, 5:03:38 AM9/24/18
to YALMIP
Always recommended to delete old first to ensure you don't have any remaining old files lurking around

Scott

unread,
Sep 24, 2018, 5:06:45 AM9/24/18
to YALMIP
Thanks, I will do it.
Reply all
Reply to author
Forward
0 new messages