Skip to content

Usage from YALMIP

Sandro Merkli edited this page Feb 17, 2020 · 2 revisions

Using ECOS with YALMIP

As of release R20130628, YALMIP supports ECOS as a solver - simply use the command

sdpsettings('solver''ecos');

to select ECOS as the solver for your problem.

Example

% Solve 1000 SOCPs  
x = sdpvar(3,1);  
Ufo = [norm(x) <= 2, norm(x+1) <= 2];  
plot(Ufo, x'y', 1000, sdpsettings('solver''ecos'));  
Clone this wiki locally