optymus.Optimizer¶
- class optymus.Optimizer(f_obj=None, f_cons=None, x0=None, method='steepest_descent', constraint_method=None, g_cons=None, h_cons=None, bounds=None, **kwargs)[source]¶
- __init__(f_obj=None, f_cons=None, x0=None, method='steepest_descent', constraint_method=None, g_cons=None, h_cons=None, bounds=None, **kwargs)[source]¶
Initializes the Optimizer class.
- Parameters:
f_obj (function) – The objective function to be minimized.
x0 (np.ndarray) – The initial guess for the minimum.
method (str, optional) – The optimization method to use. Defaults to ‘steepest_descent’.
bounds – Variable bounds as [(lo, hi), …] or (lower_array, upper_array).
Methods
__init__([f_obj, f_cons, x0, method, ...])Initializes the Optimizer class.
Returns the dimension of the problem.
Returns the optimization results.
report()Prints the optimization results.