optimisation.algorithms.downhill_simplex_penalty module

Define a Downhill Simplex with penalty.

It is not intended to be used with phi_s fit. Approach is here to make the residues grow when the constraints are not respected.

class DownhillSimplexPenalty(*args, **kwargs)

Bases: DownhillSimplex

A Downhill Simplex method, with a penalty function to consider constraints.

Everything is inherited from DownhillSimplex.

__init__(*args, **kwargs) None

Set additional information.

_abc_impl = <_abc._abc_data object>
property _default_kwargs: dict[str, Any]

Create the kwargs for the optimisation.

_norm_wrapper_residuals(var: ndarray) float

Give residuals with a penalty.

_penalty(constraints_evaluations: ndarray) float

Compute appropriate penalty.

supports_constraints: bool = True