cratepy.optimization.optimizer.Optimizer

class Optimizer[source]

Bases: ABC

Optimization algorithm interface.

solve_optimization(self, optimization_function, max_n_iter=None,                        verbose=False):

abstract: Solve optimization problem.

Constructor.

List of Public Methods

solve_optimization

Solve optimization problem.

Methods

abstract __init__()[source]

Constructor.

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

Solve optimization problem.

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

  • max_n_iter (int, default=None) – 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