class="string">'Num_Factors'</span>, R, <span class="keyword">...</span>
    <span class="string">'Factor_Generator'</span>, <span class="string">'rand'</span>);
</pre><h2 id="15">Call the <tt>cp_opt</tt> method</h2><p>Here we specify a lower bound of zero with the last two arguments.</p><pre class="codeinput">[M,M0,output] = cp_opt(X, R, <span class="string">'init'</span>, M_init,<span class="string">'lower'</span>,0);
</pre><pre class="codeoutput">Iter    10, f(x) = 1.373055e+02, ||grad||_infty = 1.52e+01