Using intlinprog solver for Unit Commitment Example

379 views
Skip to first unread message

Jules

unread,
Jul 6, 2015, 12:21:31 PM7/6/15
to yal...@googlegroups.com


Hello,

I am pretty new at YAMLP and I am trying to modify the Unit Commitment Example provided here: http://users.isy.liu.se/johanl/yalmip/pmwiki.php?n=Examples.UnitCommitment

I am trying to modify it to use the intlinprog solver provided in Matlab using the command "options = sdpsettings('solver','intlinprog')" but I am getting the following error: info: 'Solver not applicable (intlinprog)'. 

Could you help me understand what parts of the Unit Commitment example I need to modify and why so as to use the intlinprog solver?

Thank you.

Jules

Jules

unread,
Jul 6, 2015, 1:13:24 PM7/6/15
to yal...@googlegroups.com
I just figured out how to get the intlinprog solver to work for the Unit Commitment Example. I just needed to change the objective function to a linear objective function. 

Jules

Johan Löfberg

unread,
Jul 6, 2015, 2:20:01 PM7/6/15
to yal...@googlegroups.com
Yup.

You should install a better mixed-nteger solver though. If you are in academia, gurobi, mosek, cplex are all free

Jules

unread,
Jul 6, 2015, 2:51:07 PM7/6/15
to yal...@googlegroups.com
I do have the IBM cplex solver installed and I setup the Matlab connector to CPLEX using the addpath instructions (as shown here: http://localrenewable.blogspot.com/2013/07/installing-cplex-for-matlab-step-by.html). I was also able to run the cplex examples provided for Matlab. 

However, when I try using it with YAMLP, I get the following "Warning: Solver not found (cplex)".

Is there any other step I need to take to allow YAMLP to see the cplex solver?

Thank you.

Jules

Johan Löfberg

unread,
Jul 6, 2015, 3:18:24 PM7/6/15
to yal...@googlegroups.com
what do you get when you do "which cplex -all"

Jules

unread,
Jul 6, 2015, 3:33:47 PM7/6/15
to yal...@googlegroups.com
I get the following:
C:\Program Files\IBM\ILOG\CPLEX_Studio1262\cplex\matlab\x64_win64\@Cplex\Cplex.p  % Cplex constructor
C:\Program Files\IBM\ILOG\CPLEX_Studio1262\cplex\matlab\x64_win64\@Cplex\Cplex.m  % Shadowed Cplex constructor

Johan Löfberg

unread,
Jul 6, 2015, 3:38:24 PM7/6/15
to yal...@googlegroups.com
aha, haven't updated for 12.6.2

simply search for 12.6.1 in definesolvers.m and change accordingly. 
Message has been deleted

Jules

unread,
Jul 7, 2015, 1:08:13 PM7/7/15
to yal...@googlegroups.com
It worked. Thank you so much.

Jules
Reply all
Reply to author
Forward
0 new messages