> iterations, where <i>n</i> is specified by user by setting the <tt>RestartIters</tt> parameter.</p><p>Another restart modification available in <tt>ncg</tt> that was suggested by Nocedal and Wright [3] is taking a step in the direction of steepest descent when two consecutive gradients are far from orthogonal. Specifically, a steepest descent step is taking when</p><p><img src="ncg_doc_eq12955286862837271730.png" alt="$$\frac{|g_{i+1}^T g_{i}|}{\|g_{i+1}\|} \geq \nu $$" style="width:28px;height:14px;"></p