while (1) { /* outer iterations */
double fprev = fcur;
- if (nlopt_stop_forced(stop)) ret = NLOPT_FORCE_STOP;
+ if (nlopt_stop_forced(stop)) ret = NLOPT_FORCED_STOP;
else if (nlopt_stop_evals(stop)) ret = NLOPT_MAXEVAL_REACHED;
else if (nlopt_stop_time(stop)) ret = NLOPT_MAXTIME_REACHED;
else if (feasible && *minf < stop->minf_max)
else if (new_infeasible_constraint) feasible = 0;
}
- if (nlopt_stop_forced(stop)) ret = NLOPT_FORCE_STOP;
+ if (nlopt_stop_forced(stop)) ret = NLOPT_FORCED_STOP;
else if (nlopt_stop_evals(stop)) ret = NLOPT_MAXEVAL_REACHED;
else if (nlopt_stop_time(stop)) ret = NLOPT_MAXTIME_REACHED;
else if (feasible && *minf < stop->minf_max)