Clear Filters
Clear Filters

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

6 views (last 30 days)
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.

Accepted Answer

Matt J
Matt J on 8 Sep 2023
Edited: Matt J on 8 Sep 2023
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 Comment
Zakir Hussain Shaik
Zakir Hussain Shaik on 9 Sep 2023
Edited: Zakir Hussain Shaik on 9 Sep 2023
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.

Sign in to comment.

More Answers (0)

Categories

Find more on Quadratic Programming and Cone Programming in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!