downhill_simplex module
Define the Downhill simplex (or Nelder-Mead) algorihm.
- class DownhillSimplex(*args, **kwargs)
Bases:
OptimisationAlgorithmDownhill simplex method, which does not use derivatives.
All the attributes but
solutionare inherited from the Abstract Base ClassOptimisationAlgorithm.See also
- optimise(keep_history: bool = False, save_history: bool = False) tuple[bool, SetOfCavitySettings | None, OptiInfo]
Set up the optimisation and solve the problem.
- Returns:
success (bool) – Tells if the optimisation algorithm managed to converge.
optimized_cavity_settings (SetOfCavitySettings) – Best solution found by the optimization algorithm.
info (dict[str, list[float]]] | None) – Gives list of solutions, corresponding objective, convergence violation if applicable, etc.
- _output_some_info(objectives_values: dict[str, float]) None
Show the most useful data from least_squares.
- _abc_impl = <_abc._abc_data object at 0x7fd3c8125a40>