e">\(5\)</span>.</p>
<p>If L-BFGS performs poorly but BFGS performs well, consider increasing the history size. Increasing history size will increase the memory usage, although this is unlikely to be an issue for typical Stan models.</p>
</section>
<section id="the-newton-optimizer" class="level2">
<h2 class="anchored" data-anchor-id="the-newton-optimizer">The Newton optimizer</h2>
<p>There are no configuration parameters for the Newton optimizer. It is not recommended because of the slow Hessian calculatio