OptimoJoe / Optizelle

Optizelle [op-tuh-zel] is an open source software library designed to solve general purpose nonlinear optimization problems.
www.optimojoe.com/products/optizelle
63 stars 13 forks source link

Add the ScalarValuedFunctionModifications to the function bundle for non-C++ languages #37

Open josyoun opened 9 years ago

josyoun commented 9 years ago

The ScalarValuedFunctionModifications are what we use to build things like the the merit function or the gradient of the Lagrangian. At the moment, they sit inside the function bundle and they are initialized when we call getMin. In any case, these functions are freely accessible in C++, but not in MATLAB and Python. This makes calculating things like the gradient of the Lagrangian difficult for things like user-defined stopping conditions. Certainly, we could just add items like grad_stop to the optimization state, but we're probably better off just giving access to the raw modifications in case we need a different one.