Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/scipy/optimize/_trlib/__init__.py: 50%
6 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-12 06:31 +0000
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-12 06:31 +0000
1from ._trlib import TRLIBQuadraticSubproblem
3__all__ = ['TRLIBQuadraticSubproblem', 'get_trlib_quadratic_subproblem']
6def get_trlib_quadratic_subproblem(tol_rel_i=-2.0, tol_rel_b=-3.0, disp=False):
7 def subproblem_factory(x, fun, jac, hess, hessp):
8 return TRLIBQuadraticSubproblem(x, fun, jac, hess, hessp,
9 tol_rel_i=tol_rel_i,
10 tol_rel_b=tol_rel_b,
11 disp=disp)
12 return subproblem_factory