CVX subject to express this restriction in CVX: x>0

Uncategorized
May 31, 2021
J

How to express this restriction in CVX: x>0. If i use x>0, matlab will give warning. Will these warnings affect the final result?
Hope for your solutions.

M

CVX, and the solvers it calls, will treat struct inequalities as non-strict inequalities.

If you really need a strict inequality, you need to include a buffer quantity, small_positive_number, such as 1e-4 or 1e-5 , and use x >= small_positive_number . If you make small_positive_number smaller than solver feasibility tolerance, you are not guaranteed that the returned solution will satisfy the strict inequality.

J

Thank you very much. The solution of the problem itself will not get 0, so I can ignore it.