simulated_annealing module

Define the simulated annealing algorithm.

class SimulatedAnnealing(*, compensating_elements, objective_factory, design_space, compute_beam_propagation, cavity_settings_factory, reference_simulation_output, optimisation_algorithm_kwargs=None, history_kwargs=None, **kwargs)[source]

Bases: OptimisationAlgorithm

Simulated Annealing method for global optimization.

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

Set up and run the simulated annealing algorithm.

Return type:

OptiSol

Returns:

Contains solution(s), objective value(s), status, etc.

property _default_kwargs: dict[str, Any]

Default parameters for dual_annealing.

_generate_opti_sol(result)[source]

Package the results into an OptiSol dictionary.

Parameters:

result (OptimizeResult)

Return type:

OptiSol

_format_bounds()[source]

Convert Variable objects to a list of bounds.

Return type:

list[tuple[float, float]]

_abc_impl = <_abc._abc_data object at 0x7318f8d5f5c0>