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:
  • problem (iwopy.Problem) – The problem to optimize

  • problem_pars (dict) – Parameters for the problem

  • algo_pars (dict) – Parameters for the alorithm

  • setup_pars (dict) – Parameters for the calculation setup

problem_pars

Parameters for the problem

Type:

dict

algo_pars

Parameters for the alorithm

Type:

dict

setup_pars

Parameters for the calculation setup

Type:

dict

udp

The pygmo problem

Type:

iwopy.interfaces.imports.pygmo.UDA

algo

The pygmo algorithm

Type:

imports.pygmo.algo

__init__(problem, problem_pars, algo_pars, setup_pars={})[source]

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_info()

Print solver info, called before solving

solve([verbosity])

Run the optimization solver.

Attributes

initialized

Flag for finished initialization

__init__(problem, problem_pars, algo_pars, setup_pars={})[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