relentless.optimize.Optimizer#
- class relentless.optimize.Optimizer(stop)#
Abstract base class for optimization algorithm.
A
Optimizerdefines 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
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 (
IndependentVariableor tuple) – Design variable(s) to optimize.directory (str or
Directory) – Directory for writing output during optimization. Default ofNonerequests 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: