def _minimize_dogleg(fun, x0, args=(), jac=None, hess=None, **trust_region_options):
 if (jac is None):
  raise ValueError('Jacobian is required for dogleg minimization')
 if (hess is None):
  raise ValueError('Hessian is required for dogleg minimization')
 return _minimize_trust_region(fun, x0, args=args, jac=jac, hess=hess, subproblem=DoglegSubproblem, **trust_region_options)

def _minimize_dogleg ( fun , x0 , args = ( ) , jac = None , hess = None , ** trust_region_options ) : if ( jac is None ) : raise ValueError ( 'Jacobian is required for dogleg minimization' ) if ( hess is None ) : raise ValueError ( 'Hessian is required for dogleg minimization' ) return _minimize_trust_region ( fun , x0 , args = args , jac = jac , hess = hess , subproblem = DoglegSubproblem , ** trust_region_options )
minimization of scalar function of one or more variables using the dog-leg trust-region algorithm .