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.

check_dimension()

Returns the dimension of the problem.

get_results()

Returns the optimization results.

report()

Prints the optimization results.

check_dimension()[source]

Returns the dimension of the problem.

get_results()[source]

Returns the optimization results.

report()[source]

Prints the optimization results.