relentless.optimize.Optimizer#

class relentless.optimize.Optimizer(stop)#

Abstract base class for optimization algorithm.

A Optimizer defines the optimization algorithm with specified parameters.

Parameters:

stop (ConvergenceTest) – The convergence test used as the stopping criterion for the optimizer.

Methods

optimize(objective, variables[, directory, ...])

Minimize an objective function.

Attributes

stop

The convergence test used as the stopping criterion for the optimizer.

abstract optimize(objective, variables, directory=None, overwrite=False)#

Minimize an objective function.

The design variables of the objective function are adjusted until convergence.

Parameters:
  • objective (ObjectiveFunction) – The objective function to be optimized.

  • variables (IndependentVariable or tuple) – Design variable(s) to optimize.

  • directory (str or Directory) – Directory for writing output during optimization. Default of None requests no output is written.

  • overwrite (bool) – If True, overwrite the directory before beginning optimization.

property stop#

The convergence test used as the stopping criterion for the optimizer.

Type:

ConvergenceTest