bundles / scipy 1.17.1 / scipy / optimize / _optimize / OptimizeResult
class
scipy.optimize._optimize:OptimizeResult
Summary
Represents the optimization result.
Attributes
x: ndarrayThe solution of the optimization.
success: boolWhether or not the optimizer exited successfully.
status: intTermination status of the optimizer. Its value depends on the underlying solver. Refer to message for details.
message: strDescription of the cause of the termination.
fun: floatValue of objective function at x.
jac, hess: ndarrayValues 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: objectInverse 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: intNumber of evaluations of the objective functions and of its Jacobian and Hessian.
nit: intNumber of iterations performed by the optimizer.
maxcv: floatThe 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.
Aliases
-
scipy.optimize.OptimizeResult
Referenced by
This package
- dev:missing-bits
- release:0.18.0-notes
- release:1.10.0-notes
- release:1.11.0-notes
- release:1.16.0-notes
- scipy.differentiate._differentiate:derivative
- scipy.differentiate._differentiate:hessian
- scipy.differentiate._differentiate:jacobian
- scipy.integrate._tanhsinh:nsum
- scipy.integrate._tanhsinh:tanhsinh
- scipy.optimize._linprog_ip:_ip_hsd
- scipy.optimize._linprog_simplex:_solve_simplex
- scipy.optimize._linprog:linprog
- scipy.optimize._milp:milp
- scipy.stats._fit:fit
- scipy.stats._morestats:boxcox
- scipy.stats._morestats:boxcox_normmax