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 ? Mise en oeuvre d'IHM
avec Qt et PySide6
Voir le programme détaillé
Classe « Bounds »

Méthode scipy.optimize.Bounds.residual

Signature de la méthode residual

def residual(self, x) 

Description

help(Bounds.residual)

Calculate the residual (slack) between the input and the bounds

For a bound constraint of the form::

    lb <= x <= ub

the lower and upper residuals between `x` and the bounds are values
``sl`` and ``sb`` such that::

    lb + sl == x == ub - sb

When all elements of ``sl`` and ``sb`` are positive, all elements of
``x`` lie within the bounds; a negative element in ``sl`` or ``sb``
indicates that the corresponding element of ``x`` is out of bounds.

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 ? Mise en oeuvre d'IHM
avec Qt et PySide6
Voir le programme détaillé