Im writing a code for energy harvesting but the results is disappointing in one constraint

The solver is solving the dual problem, and reports it is infeasible, so CVX conclude that your original (primal) problem is unbounded. See https://yalmip.github.io/debuggingunbounded/ for tips on diagnosing that.

Given that your model involves log of CVX variable, I recommend that you either use Mosek 9.2 as solver, if that is available to you, oi if not, follow the advice in CVXQUAD: How to use CVXQUAD's Pade Approximant instead of CVX's unreliable Successive Approximation for GP mode, log, exp, entr, rel_entr, kl_div, log_det, det_rootn, exponential cone. CVXQUAD's Quantum (Matrix) Entropy & Matrix Log related functions

1 Like