iwopy.interfaces.scipy.optimizer.Optimizer_scipy

class iwopy.interfaces.scipy.optimizer.Optimizer_scipy[source]

Bases: Optimizer

Interface to the scipy optimizers.

Note that these solvers do not support vectorized evaluation.

Parameters:
  • problem (iwopy.Problem) – The problem to optimize

  • scipy_pars (dict) – Additional parameters for scipy.optimze.minimize()

  • mem_size (int) – The memory size, number of stored obj, cons evaluations

  • kwargs (dict, optional) – Additional parameters for base class

scipy_pars

Additional parameters for scipy.optimze.minimize()

Type:

dict

mem_size

The memory size, number of stored obj, cons evaluations

Type:

int

__init__(problem, scipy_pars={}, mem_size=100, **kwargs)[source]

Methods

__init__(problem[, scipy_pars, mem_size])

finalize(opt_results[, verbosity])

This function may be called after finishing the optimization.

initialize([verbosity])

Initialize the object.

print_info()

Print solver info, called before solving

solve([verbosity])

Run the optimization solver.

Attributes

initialized

Flag for finished initialization

__init__(problem, scipy_pars={}, mem_size=100, **kwargs)[source]
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:

bool

print_info()[source]

Print solver info, called before solving

solve(verbosity=1)[source]

Run the optimization solver.

Parameters:

verbosity (int) – The verbosity level, 0 = silent

Returns:

results – The optimization results object

Return type:

iwopy.SingleObjOptResults