iwopy.interfaces.pygmo.optimizer.Optimizer_pygmo
- class iwopy.interfaces.pygmo.optimizer.Optimizer_pygmo[source]
Bases:
Optimizer
Interface to the pygmo optimizers for serial runs.
- Parameters:
- udp
The pygmo problem
- Type:
iwopy.interfaces.imports.pygmo.UDA
- algo
The pygmo algorithm
- Type:
imports.pygmo.algo
Methods
__init__
(problem, problem_pars, algo_pars[, ...])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)
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=1)[source]
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: