scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturns
_accept_trial(self, energy_trial, feasible_trial, cv_trial, energy_orig, feasible_orig, cv_orig)

This test corresponds to section III of Lampinen .

Parameters

energy_trial : float

Energy of the trial solution

feasible_trial : float

Feasibility of trial solution

cv_trial : array-like

Excess constraint violation for the trial solution

energy_orig : float

Energy of the original solution

feasible_orig : float

Feasibility of original solution

cv_orig : array-like

Excess constraint violation for the original solution

Returns

accepted : bool

Trial is accepted if: * it satisfies all constraints and provides a lower or equal objective function value, while both the compared solutions are feasible - or - * it is feasible while the original solution is infeasible, - or - * it is infeasible, but provides a lower or equal constraint violation for all constraint functions.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/optimize/_differentialevolution.py#1067
type: <class 'function'>
Commit: