How to model affine cone constraint using secondordercone() with coneprog() solver?

6 次查看(过去 30 天)
Let say I have conic constraint that is translated by a constant, say for example the constant be 1, given by
How to model this constraint using secondordercone() ? I know we can do such constraint using CVX/YALMIP. But I wanted to know is it possible to with coneprog solver.

采纳的回答

Matt J
Matt J 2023-9-8
编辑:Matt J 2023-9-8
Perhaps as follows:
socConstraint.A=blkdiag(A,constant);
socConstraint.b=zeros(n+1,1);
socConstraint.d=[d;0];
socConstraint.gamma=0;
lb=[lb;1]
ub=[ub;1]
  1 个评论
Zakir Hussain Shaik
编辑:Zakir Hussain Shaik 2023-9-9
Thank you that helped. I realized from your approach that we can also introduce equality constraint on the new slack variable ((n+1)^th term) to be 1.
In the above equation c is any constant.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Quadratic Programming and Cone Programming 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by