|
|
 |
 | | |
|
TOPIC: roots of poly(2)
|
|
Re: roots of poly(2) 11 Months, 3 Weeks ago
|
Karma: 0
|
|
i wrote this,but it would'nt reply in 3 seconds,is it correct?
sdpsettings('solver','gurobi.lowersolver')
sdpsettings('solver','gurobi.lpsolver')
sdpsettings('solver','fmincon.uppersolver')
solvesdp([-5<=x<=5,p==0],[],sdpsettings('solver','bmibnb'))
|
|
|
|
|
|
|
Re: roots of poly(2) 11 Months, 3 Weeks ago
|
Karma: 0
|
|
have you any good pdf for yalmip?
i could'nt find it in internet,only yalmip home oage is available.
|
|
|
|
|
|
|
Re: roots of poly(2) 11 Months, 3 Weeks ago
|
Karma: 0
|
|
i wrote this:
options = sdpsettings('bmibnb.uppersolver','fmincon','bmibnb.lowersolver','gurobi');
options = sdpsettings(options,'solver','bmibnb','bmibnb.lpsolver','gurobi');
options = sdpsettings(options,'verbose',6);
solvesdp([-5<=x<=5,p==0],[],options)
double(x)
double(p)
but the ans is
ans =
solvertime: 0
info: 'No suitable solver'
problem: -2
yalmiptime: 0.1250
what is problem?
|
|
|
|
|
|
|
Re: roots of poly(2) 11 Months, 3 Weeks ago
|
Karma: 32
|
You are probably missing fmincon or gurobi
What is printed when you don't specify the solvers used by bmibnb, and let YALMIP pick the best it can find.
| Code: |
options = sdpsettings('solver','bmibnb');
solvesdp([-5<=x<=5,p==0],[],options)
|
|
|
lofberg
Platinum Boarder
Posts: 2280
|
|
|
|
|
Re: roots of poly(2) 11 Months, 3 Weeks ago
|
Karma: 32
|
|
Wiki is the only documentation.
|
|
lofberg
Platinum Boarder
Posts: 2280
|
|
|
|
|
Re: roots of poly(2) 11 Months, 3 Weeks ago
|
Karma: 32
|
| Code: |
sdpsettings('solver','gurobi.lowersolver')
sdpsettings('solver','gurobi.lpsolver')
sdpsettings('solver','fmincon.uppersolver')
solvesdp([-5<=x<=5,p==0],[],sdpsettings('solver','bmibnb'))
|
I guess you reaölized this is faulty code, since you are calling sdpsettings without catching the results. Also, the definition of solver makes no sense in the first three calls.
|
|
lofberg
Platinum Boarder
Posts: 2280
|
|
|
|
|
 | | |
|