[SciPy-User] fmin_slsqp exit mode 8

Pauli Virtanen pav at iki.fi
Fri Sep 28 14:09:27 EDT 2012


27.09.2012 18:15, josef.pktd at gmail.com kirjoitti:
> in statsmodels we  have a case where fmin_slsqp ends with mode=8
> "POSITIVE DIRECTIONAL DERIVATIVE FOR LINESEARCH"
> 
> Does anyone know what it means and whether it's possible to get around it?
> 
> the fortran source file doesn't have an explanation.

Guessing without wading through the F77 goto sphagetti: it could mean
that the optimizer has wound up with a search direction in which the
function increases (or doesn't decrease fast enough). If it's an
termination condition, it probably also means that the optimizer is not
able to recover from this.

Some googling seems to indicate that this depends on the scaling of the
prolem, so it may also be some sort of a precision issue (or an issue
with wrong tolerances):

http://www.mail-archive.com/nlopt-discuss@ab-initio.mit.edu/msg00208.html

-- 
Pauli Virtanen




More information about the SciPy-User mailing list