t">%           maximize    U(x)</span>
<span class="comment">%           subject to  A*x &lt;= c</span>
<span class="comment">% Here we use U_i(x_i) = log x_i for all i</span>

<span class="comment">% Input data</span>
rand(<span class="string">'state'</span>,1)
L = 20;
n = 10;
k = 7; <span class="comment">%average links per flow</span>
A = double(rand(L,n) &lt;= k/L);
c = 0.9*rand(L,1)+0.1;

<span class="comment">% Solve network rate problem</span>
cvx_begin
    variable <span class="string">x(n)</span>;
 