Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Positive directional derivative for linesearch

Tags:

scipy

What does the smode of scipy.optimize 'Positive directional derivative for linesearch' mean?

for example in fmin_slsqp http://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.fmin_slsqp.html

like image 673
Davoud Taghawi-Nejad Avatar asked Jun 22 '12 11:06

Davoud Taghawi-Nejad


2 Answers

These optimization algorithms typically work by choosing a descent direction, and then performing a line search to that direction. I think this message means that the optimizer got into a position where it did not manage to find a direction where the value of the objective function decreases (fast enough), but could also not verify that the current position is a minimum.

like image 85
pv. Avatar answered Nov 13 '22 17:11

pv.


I still don't know what it means but how to solve it. Basically, the function that is optimized needs to return a smaller value.

F(x):
    ...
    return value / 10000000
like image 18
Davoud Taghawi-Nejad Avatar answered Nov 13 '22 18:11

Davoud Taghawi-Nejad