Problem with recent version of yalmip for cplex.

23 views
Skip to first unread message

convex_optimization

unread,
Mar 11, 2026, 9:14:21 PM (10 days ago) Mar 11
to YALMIP
dear members, 

I downloaded the recent ersion of yalmip  but it gives the following error for cplex.
what can be the cause?

thank you.


p1.png

Johan Löfberg

unread,
Mar 12, 2026, 2:57:20 AM (10 days ago) Mar 12
to YALMIP
You would have to turn on debug to see what actually happens. However, cplex has dropped matlab support so it is not of priority, you are better off switching to gurobi, mosek, xpress

sdpvar x
optimize(x>=0,x,sdpsettings('solver','cplex','debug',1))

convex_optimization

unread,
Mar 12, 2026, 9:31:18 AM (9 days ago) Mar 12
to YALMIP
I obtain the following error:

sdpvar x
optimize(x>=0,x,sdpsettings('solver','cplex','debug',1))
Unrecognized field name "ProblemClass".

Error in call_cplexibm_miqp (line 4)
if interfacedata.ProblemClass.objective.quadratic.nonconvex
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in call_cplexibm_qcmiqp (line 9)
    output = call_cplexibm_miqp(interfacedata);
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in solvesdp (line 420)
    eval(['output = ' solver.call '(interfacedata);']);
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in optimize (line 31)
[varargout{1:nargout}] = solvesdp(varargin{:});
                         ^^^^^^^^^^^^^^^^^^^^^

convex_optimization

unread,
Mar 12, 2026, 4:08:16 PM (9 days ago) Mar 12
to YALMIP
In fact,  gurobi is also failing. My matlab version is 2024b.   please see the attachment.
p2.png

Johan Löfberg

unread,
Mar 13, 2026, 6:18:21 AM (8 days ago) Mar 13
to YALMIP
ProblemClass should be problemclass

I think your gurobi crash is completely unrelated, most likely a license problem, so you will have to debug that in the same way.
Reply all
Reply to author
Forward
0 new messages