(self, objective)
return result
Calls scipy.optimize.minimize.
Calls scipy.optimize.minimize.
Calls scipy . optimize . minimize .
def _optimize(self, objective):
        """
        Calls scipy.optimize.minimize. 
        """
        objective1d = lambda X: tuple(map(lambda arr: arr.ravel(), objective(X)))
        result = minimize(fun=objective1d,
                          x0=self.get_initial(),
                          jac=self.gradient_enabled(),
                          bounds=list(zip(self.domain.lower, self.domain.upper)),
                          **self.config)
        return result
def _optimize ( self , objective ) : objective1d = lambda X : tuple ( map ( lambda arr : arr . ravel ( ) , objective ( X ) ) ) result = minimize ( fun = objective1d , x0 = self . get_initial ( ) , jac = self . gradient_enabled ( ) , bounds = list ( zip ( self . domain . lower , self . domain . upper ) ) , * * self . config ) return result