First-order
Iteration Func-count f(x) Step-size optimality
0 1 1244.28 3.08
1 3 1243.81 0.0945997 8.5
2 5 1243.71 0.22861 0.0074
3 6 1243.71 1 0.000108
4 7 1243.71 1 1.88e-08
Local minimum found.
Optimization completed because the size of the gradient is less than
the value of the optimality tolerance.
<stopping criteria details>
K>> hold_betas
hold_betas =
0.0996 0.6545
Example of correct output for iteration 1: