model is unbounded

49 views
Skip to first unread message

张法涛

unread,
Nov 5, 2023, 3:36:15 AM11/5/23
to YALMIP
Dear JODAN

I encountered some problems when calling yalmip in Matlab, and the problem has been solved in the CPLEX IDE. However, the same model in Matlab using yalmip to call cplex for solution shows unbounded, and I have crashed. I really, really hope to receive your help. To help you understand, the code has been made as easy to understand as possible. Attached are the code and LP files of CPLEX IDE, as well as the MATLAB code and LP files.
IDE_LP.lp
mymodel
matlabcode.m
CPLEX_IDECODE.mod

张法涛

unread,
Nov 5, 2023, 4:13:54 AM11/5/23
to YALMIP
error.jpg

Johan Löfberg

unread,
Nov 6, 2023, 2:18:08 AM11/6/23
to YALMIP
My guess is that you are missing non-negativity constraints on some variables (these are implicit in some old modeling languages for cplex etc)

Reply all
Reply to author
Forward
0 new messages