iwopy.core.optimizer.Optimizer¶
- class iwopy.core.optimizer.Optimizer[source]¶
Bases:
Base
Abstract base class for optimization solvers.
- Parameters:
problem (iwopy.Problem) – The problem to optimize
name (str) – The name
- problem¶
The problem to optimize
- Type:
iwopy.Problem
Methods
__init__
(problem[, name])finalize
(opt_results[, verbosity])This function may be called after finishing the optimization.
initialize
([verbosity])Initialize the object.
Print solver info, called before solving
solve
([verbosity])Run the optimization solver.
Attributes
Flag for finished initialization
- finalize(opt_results, verbosity=1)[source]¶
This function may be called after finishing the optimization.
- Parameters:
opt_results (iwopy.OptResults) – The optimization results object
verbosity (int) – The verbosity level, 0 = silent
- initialize(verbosity=0)¶
Initialize the object.
- Parameters:
verbosity (int) – The verbosity level, 0 = silent
- property initialized¶
Flag for finished initialization
- Returns:
True if initialization has been done
- Return type: