Skip to content

Commit

Permalink
praxis: handle xtol_abs == NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
aitap committed Apr 27, 2019
1 parent 73514f5 commit 3b216f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/algs/praxis/praxis.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ nlopt_result praxis_(double t0, double machep, double h0,
t_old = small + t0;
else {
t_old = 0;
for (i__ = 0; i__ < n; ++i__)
if (stop->xtol_abs)
for (i__ = 0; i__ < n; ++i__)
if (stop->xtol_abs[i__] > t_old)
t_old = stop->xtol_abs[i__];
t_old += small;
Expand Down

0 comments on commit 3b216f5

Please sign in to comment.