   maximize(sum(log(x)))
    subject <span class="string">to</span>
        A*x &lt;= c
cvx_end
primal_obj = cvx_optval;

<span class="comment">% Solve dual problem to obtain link prices</span>
cvx_begin
    variable <span class="string">lambda(L)</span>;
    minimize(c'*lambda-sum(log(A'*lambda))-n)
    subject <span class="string">to</span>
        lambda &gt;= 0
cvx_end
dual_obj = cvx_optval;
</pre>
<a id="output"></a>
<pre class="codeoutput">
 
Successive approximation method to be employed.
   For impr