scipy 1.10.1 Pypi GitHub Homepage
Other Docs

NotesParametersReturns
direct(func: 'Callable[[npt.ArrayLike, Tuple[Any]], float]', bounds: 'Union[Iterable, Bounds]', *, args: 'tuple' = (), eps: 'float' = 0.0001, maxfun: 'Union[int, None]' = None, maxiter: 'int' = 1000, locally_biased: 'bool' = True, f_min: 'float' = -inf, f_min_rtol: 'float' = 0.0001, vol_tol: 'float' = 1e-16, len_tol: 'float' = 1e-06, callback: 'Optional[Callable[[npt.ArrayLike], NoneType]]' = None) -> 'OptimizeResult'

Notes

Parameters

func : callable
bounds : sequence or `Bounds`
args : tuple, optional
eps : float, optional
maxfun : int or None, optional
maxiter : int, optional
locally_biased : bool, optional
f_min : float, optional
f_min_rtol : float, optional
vol_tol : float, optional
len_tol : float, optional
callback : callable, optional

Returns

res : OptimizeResult

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/_direct_py.py#41
type: <class 'function'>
Commit: