scipy 1.8.0 Pypi GitHub Homepage
Other Docs
AttributesParameters

Attributes

fun : callable

Function defining the constraint wrapped by one of the convenience classes.

bounds : 2-tuple

Contains lower and upper bounds for the constraints --- lb and ub. These are converted to ndarray and have a size equal to the number of the constraints.

Very similar in practice to PreparedConstraint , except that no evaluation of jac/hess is performed (explicit or implicit).

If created successfully, it will contain the attributes listed below.

Parameters

constraint : {`NonlinearConstraint`, `LinearConstraint`, `Bounds`}

Constraint to check and prepare.

x0 : array_like

Initial vector of independent variables.

Object to wrap/evaluate user defined constraints.

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#1344
type: <class 'type'>
Commit: