Menu

Commit [r185]  Maximize  Restore  History

Updated minfx to protect against future changes occurring in the numpy Python package.

From numpy version 1.9, the FutureWarning "__main__:1: FutureWarning: comparison to `None` will
result in an elementwise object comparison in the future." is seen in a number of minfx's
optimisation algorithms, and in all of the constraint algorithms.

The issue is that the behaviour of the comparison operators '==' and '!=' will change with future
numpy versions. These have been replaced with 'is' and 'is not' throughout.

bugman 2015-10-16

changed /trunk/minfx/generic.py
changed /trunk/minfx/grid.py
changed /trunk/minfx/log_barrier_function.py
changed /trunk/minfx/method_of_multipliers.py
/trunk/minfx/generic.py Diff Switch to side-by-side view
Loading...
/trunk/minfx/grid.py Diff Switch to side-by-side view
Loading...
/trunk/minfx/log_barrier_function.py Diff Switch to side-by-side view
Loading...
/trunk/minfx/method_of_multipliers.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.