cratepy.optimization.optimizer.SciPyMinimizer

class SciPyMinimizer(method='Powell')[source]

Bases: Optimizer

SciPy minimization optimizer (wrapper).

Documentation: see here.

solve_optimization(self, optimization_function, max_n_iter=None, verbose=False)[source]

Solve optimization problem.

Constructor.

Parameters:

method ({'Nelder-Mead', 'Powell', 'CG', 'BFGS'}, default='Powell') – Optimization method.

List of Public Methods

solve_optimization

Solve optimization problem.

Methods

__init__(method='Powell')[source]

Constructor.

Parameters:

method ({'Nelder-Mead', 'Powell', 'CG', 'BFGS'}, default='Powell') – Optimization method.

solve_optimization(optimization_function, max_n_iter=1, verbose=False)[source]

Solve optimization problem.

Parameters:
  • optimization_function (OptimizationFunction) – Instance of OptimizationFunction class.

  • max_n_iter (int, default=1) – Maximum number of iterations.

  • verbose (bool, default=False) – Enable verbose output.

Returns:

parameters – Optimization parameters names (key, str) and values (item, float).

Return type:

dict