Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé
Classe « LinearConstraint »

Méthode scipy.optimize.LinearConstraint.residual

Signature de la méthode residual

def residual(self, x) 

Description

help(LinearConstraint.residual)

Calculate the residual between the constraint function and the limits

For a linear constraint of the form::

    lb <= A@x <= ub

the lower and upper residuals between ``A@x`` and the limits are values
``sl`` and ``sb`` such that::

    lb + sl == A@x == ub - sb

When all elements of ``sl`` and ``sb`` are positive, all elements of
the constraint are satisfied; a negative element in ``sl`` or ``sb``
indicates that the corresponding element of the constraint is not
satisfied.

Parameters
----------
x: array_like
    Vector of independent variables

Returns
-------
sl, sb : array-like
    The lower and upper residuals


Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les fondamentaux
Voir le programme détaillé