Using cone command for second order cone programming pq>= r^2 ?

20 views
Skip to first unread message

JackJack

unread,
Jul 2, 2020, 6:26:14 AM7/2/20
to YALMIP

In the case that I have found a second order programming presentation of the following inequality 

What would be the appropriate command in yalmip so that my solver know that this is an SOC presentation ?
Thank you very much !

Johan Löfberg

unread,
Jul 2, 2020, 6:33:51 AM7/2/20
to YALMIP
 [r^2 <= p*q,p>=0,q>=0]

norm([2*r;p-q]) <= p+q 

rcone(.5*p,q,r) 

cone([p+q;2*r;p-q]) 
Reply all
Reply to author
Forward
0 new messages