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 ? Programmation Python
Les compléments
Voir le programme détaillé
Module « scipy.optimize »

Classe « OptimizeResult »

Informations générales

Héritage

builtins.object
    builtins.dict
        _RichResult
            OptimizeResult

Définition

class OptimizeResult(_RichResult):

help(OptimizeResult)

Represents the optimization result.

Attributes
----------
x : ndarray
    The solution of the optimization.
success : bool
    Whether or not the optimizer exited successfully.
status : int
    Termination status of the optimizer. Its value depends on the
    underlying solver. Refer to `message` for details.
message : str
    Description of the cause of the termination.
fun : float
    Value of objective function at `x`.
jac, hess : ndarray
    Values of objective function's Jacobian and its Hessian at `x` (if
    available). The Hessian may be an approximation, see the documentation
    of the function in question.
hess_inv : object
    Inverse of the objective function's Hessian; may be an approximation.
    Not available for all solvers. The type of this attribute may be
    either np.ndarray or scipy.sparse.linalg.LinearOperator.
nfev, njev, nhev : int
    Number of evaluations of the objective functions and of its
    Jacobian and Hessian.
nit : int
    Number of iterations performed by the optimizer.
maxcv : float
    The maximum constraint violation.

Notes
-----
Depending on the specific solver being used, `OptimizeResult` may
not have all attributes listed here, and they may have additional
attributes not listed here. Since this class is essentially a
subclass of dict with attribute accessors, one can see which
attributes are available using the `OptimizeResult.keys` method.

Constructeur(s)

Signature du constructeur Description
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des opérateurs

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

__contains__, __delitem__, __eq__, __ge__, __getitem__, __gt__, __ior__, __le__, __lt__, __ne__, __or__, __ror__, __setitem__

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
__class_getitem__(object) See PEP 585 [extrait de __class_getitem__.__doc__]
fromkeys(iterable, value=None) Create a new dictionary with keys from iterable and values set to value. [extrait de fromkeys.__doc__]

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

__dir__, __getattr__, __init_subclass__, __repr__, __subclasshook__

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

__getattribute__, __iter__, __len__, __reversed__, __sizeof__, clear, copy, get, items, keys, pop, popitem, setdefault, update, values

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

__delattr__, __format__, __getattribute__, __getstate__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__

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é