scipy 1.10.1 Pypi GitHub Homepage
Other Docs

ParametersReturns
_minimize_trustregion_constr(fun, x0, args, grad, hess, hessp, bounds, constraints, xtol=1e-08, gtol=1e-08, barrier_tol=1e-08, sparse_jacobian=None, callback=None, maxiter=1000, verbose=0, finite_diff_rel_step=None, initial_constr_penalty=1.0, initial_tr_radius=1.0, initial_barrier_parameter=0.1, initial_barrier_tolerance=0.1, factorization_method=None, disp=False)

Parameters

gtol : float, optional
xtol : float, optional
barrier_tol : float, optional
sparse_jacobian : {bool, None}, optional
initial_tr_radius: float, optional :
initial_constr_penalty : float, optional
initial_barrier_parameter, initial_barrier_tolerance: float, optional :
factorization_method : string or None, optional
finite_diff_rel_step : None or array_like, optional
maxiter : int, optional
verbose : {0, 1, 2}, optional
disp : bool, optional

Returns

`OptimizeResult` with the fields documented below. Note the following:
x : ndarray, shape (n,)
optimality : float
constr_violation : float
fun : float
grad : ndarray, shape (n,)
lagrangian_grad : ndarray, shape (n,)
nit : int
nfev : integer
njev : integer
nhev : integer
cg_niter : int
method : {'equality_constrained_sqp', 'tr_interior_point'}
constr : list of ndarray
jac : list of {ndarray, sparse matrix}
v : list of ndarray
constr_nfev : list of int
constr_njev : list of int
constr_nhev : list of int
tr_radius : float
constr_penalty : float
barrier_tolerance : float
barrier_parameter : float
execution_time : float
message : str
status : {0, 1, 2, 3}
cg_stop_cond : int

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/optimize/_trustregion_constr/minimize_trustregion_constr.py#114
type: <class 'function'>
Commit: