class iwopy.core.Optimizer(iwopy.core.Base)[source]

Abstract base class for optimization solvers.

Attributes

problem: iwopy.Problem

The problem to optimize

name: str

The name

Public members

Optimizer(problem, name='optimizer')[source]

Constructor

print_info()[source]

Print solver info, called before solving

abstract solve(verbosity=1)[source]

Run the optimization solver.

finalize(opt_results, verbosity=1)[source]

This function may be called after finishing the optimization.

classmethod new(optimizer_type, *args, **kwargs)[source]

Run-time optimizer factory.

__str__()[source]

Get info string

property initialized

Flag for finished initialization

initialize(verbosity=0)[source]

Initialize the object.