differential_evolution module

Define DifferentialEvolution.

class DifferentialEvolution(*, compensating_elements, elts, objectives, variables, compute_beam_propagation, compute_residuals, cavity_settings_factory, reference_simulation_output, constraints=None, compute_constraints=None, optimisation_algorithm_kwargs=None, history_kwargs=None, **kwargs)[source]

Bases: DownhillSimplex

Differential evolution method, which does not use derivatives.

Warning

This method was not tuned for this problem yet.

Parameters:
supports_constraints: bool = False
optimize()[source]

Set up the optimisation and solve the problem.

Returns:

info – Gives list of solutions, corresponding objective, convergence violation if applicable, etc.

Return type:

OptiSol

_algorithm_parameters()[source]

Create the kwargs for the optimisation.

Return type:

dict

_abc_impl = <_abc._abc_data object at 0x70e2505c4dc0>