OptimResult
OptimResult(**fields)The result of :func:optim_minimize/:func:optim_maximize.
Carries no C++ state: every field is a plain Python value, so an instance serializes with :mod:pickle.
Attributes
| Name | Type | Description |
|---|---|---|
| parameters | numpy.ndarray | The optimum. |
| value | float | The objective’s own value there, in its own sign convention – not negated for :func:optim_maximize. |
| iterations | int | |
| function_evaluations | int | |
| status | str | |
| hessian | numpy.ndarray or None | The numerically differentiated Hessian at the optimum. Computed BY DEFAULT for "de", "bfgs", "powell", and "mlsl" (matching the ported C# Optimizer base), by extra objective evaluations – pass control={"compute_hessian": False} to skip it and those evaluations. Always None for "nelder_mead" and "brent", which never compute one. |
| multipliers | dict or None | For "augmented_lagrange", the three Lagrange multiplier vectors under the keys "equality", "less_than" and "greater_than", each holding one entry per constraint of that type, in the order the constraints were given. None for every other method, none of which has multipliers. |