Error using ==> sdpsettings at 1682 Unrecognized property name 'cplex.qpmethod'.

162 views
Skip to first unread message

haliaetos

unread,
Jan 15, 2014, 1:01:40 AM1/15/14
to yal...@googlegroups.com
x = sdpvar(2,1);
Constraints = [sum(x) <= 1, x(1)==0, x(2) >= 0.5];
Objective = x'*x;
options = sdpsettings('verbose',1,'solver','cplex','cplex.qpmethod',1);
sol = solvesdp(Constraints,Objective,options);
if sol.problem == 0
 solution = double(x);
else
 display('Hmm, something went wrong!');
 yalmiperror(sol.problem)
end
I am  a beginner, I start with the basics.,but the matlab say"Error using ==> sdpsettings at 1682 Unrecognized property name 'cplex.qpmethod'. ",how to  deal with it!thank you.

Johan Löfberg

unread,
Jan 15, 2014, 1:43:03 AM1/15/14
to yal...@googlegroups.com
YALMIP has not managed to create a default options structure for CPLEX, indicating that the required files (i.e., the MATLAB interface supplied by IBM) is not in your path

>> which cplexoptimset
C
:\Program Files\IBM\ILOG\CPLEX_Studio125\cplex\matlab\x64_win64\cplexoptimset.p


Johan Löfberg

unread,
Jan 15, 2014, 1:44:38 AM1/15/14
to yal...@googlegroups.com
and as it says in the example "(Note that the code specifies the solver to CPLEX. If you don't have CPLEX installed, simply remove that part of the option list if you want to run the code)."

haliaetos

unread,
Jan 15, 2014, 9:53:41 AM1/15/14
to yal...@googlegroups.com
my cplexoptimset path:D:\Program Files\ILOG\CPLEX_Studio_AcademicResearch122\cplex\matlab\x86_win32,so my cplexoptimset.p is existed,
setpath.png

Johan Löfberg

unread,
Jan 15, 2014, 11:22:03 AM1/15/14
to yal...@googlegroups.com
And it runs?

ops = cplexoptimset('cplex')

12.2 is pretty old, you should update. I don't have that version so I cannot debug your issues. If you want to debug this, you would have to put a break on line 1034 in sdpsettings and step through the code when you run sdpsettings, to see where/why it crashes

haliaetos

unread,
Jan 15, 2014, 8:30:04 PM1/15/14
to yal...@googlegroups.com
I download the 12.5,but it limit the constraints,thank you all the same

Johan Löfberg

unread,
Jan 16, 2014, 1:00:39 AM1/16/14
to yal...@googlegroups.com
Then you downloaded the wrong version. Your 12.2 installation was an academic license, hence you should be able to get an academic license of 12.6 too (the latest version is 12.6, not 12.5)

haliaetos

unread,
Jan 16, 2014, 8:54:49 PM1/16/14
to yal...@googlegroups.com
I have been an IBM Academic Initiative."Congratulations on becoming a member of the IBM Academic Initiative.",so should I go where to download the academic version of it,I only to find the "Cplex Optimization Studio Try it free for 90 days",the cplex12.6 whether need the access.lim or not?

Johan Löfberg

unread,
Jan 17, 2014, 2:05:40 AM1/17/14
to

haliaetos

unread,
Jan 18, 2014, 10:33:56 AM1/18/14
to yal...@googlegroups.com
thank you,I have download the cplex12.6 and run the yamlip basic example,I want to solve my “Lagrangian Relaxation”,but I donot have the example ,so can you recommend some websites, books or examples about the algorithm,nice to talk to you !
Reply all
Reply to author
Forward
0 new messages