Did I find the right examples for you? yes no

All Samples(4)  |  Call(0)  |  Derive(2)  |  Import(2)

src/s/c/scipy-0.13.3/scipy/optimize/_trustregion_dogleg.py   scipy(Download)
import numpy as np
import scipy.linalg
from ._trustregion import (_minimize_trust_region, BaseQuadraticSubproblem)
 
__all__ = []
class DoglegSubproblem(BaseQuadraticSubproblem):
    """Quadratic subproblem solved by the dogleg method"""
 
    def cauchy_point(self):
        """

src/s/c/scipy-0.13.3/scipy/optimize/_trustregion_ncg.py   scipy(Download)
import numpy as np
import scipy.linalg
from ._trustregion import (_minimize_trust_region, BaseQuadraticSubproblem)
 
__all__ = []
class CGSteihaugSubproblem(BaseQuadraticSubproblem):
    """Quadratic subproblem solved by a conjugate gradient method"""
    def solve(self, trust_radius):
        """
        Solve the subproblem using a conjugate gradient method.