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é
Module « scipy.optimize »

Classe « Bounds »

Informations générales

Héritage

builtins.object
    Bounds

Définition

class Bounds(builtins.object):

help(Bounds)

Bounds constraint on the variables.

The constraint has the general inequality form::

    lb <= x <= ub

It is possible to use equal bounds to represent an equality constraint or
infinite bounds to represent a one-sided constraint.

Parameters
----------
lb, ub : dense array_like, optional
    Lower and upper bounds on independent variables. `lb`, `ub`, and
    `keep_feasible` must be the same shape or broadcastable.
    Set components of `lb` and `ub` equal
    to fix a variable. Use ``np.inf`` with an appropriate sign to disable
    bounds on all or some variables. Note that you can mix constraints of
    different types: interval, one-sided or equality, by setting different
    components of `lb` and `ub` as necessary. Defaults to ``lb = -np.inf``
    and ``ub = np.inf`` (no bounds).
keep_feasible : dense array_like of bool, optional
    Whether to keep the constraint components feasible throughout
    iterations. Must be broadcastable with `lb` and `ub`.
    Default is False. Has no effect for equality constraints.

Constructeur(s)

Signature du constructeur Description
__init__(self, lb=-inf, ub=inf, keep_feasible=False)

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__repr__(self)
residual(self, x) Calculate the residual (slack) between the input and the bounds [extrait de residual.__doc__]

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __getstate__, __hash__, __init_subclass__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Vous êtes un professionnel et vous avez besoin d'une formation ? Sensibilisation à
l'Intelligence Artificielle
Voir le programme détaillé