error

25 views
Skip to first unread message

s.m

unread,
Nov 26, 2012, 1:51:16 AM11/26/12
to yal...@googlegroups.com
hi every one . when I run the following test model T I get an error
x1=sdpvar(1)
x2=sdpvar(1)
x3=sdpvar(1)
objective=-3*x1*x2-2*x2*x3-12*x1*x3
constraint=[6*x1+x2+4*x3==6]
solvesdp(constraint,objective)

 ERROE :
ans =

    solvertime: 0
          info: 'No suitable solver'
       problem: -2
    yalmiptime: 0.0150
please help me .

Johan Löfberg

unread,
Nov 26, 2012, 2:16:06 AM11/26/12
to yal...@googlegroups.com
You don't seem to have any solver installed at all on your computer. The problem you create is a non-convex QP, hence you need a solver capable of solving this problem class (quadprog,fmincon,snopt,ipopt,...)
Reply all
Reply to author
Forward
0 new messages