def __init__(self,y0,yT,T,J,grad_J,parallel_J=None, Lbfgs_options=None,options=None): OptimalControlProblem.__init__(self,y0,yT,T,J,grad_J,options) self.parallel_J=parallel_J self.comm = MPI.COMM_WORLD
def __init__(self,y0,yT,T,J,grad_J,parallel_J=None,parallel_grad_J=None, Lbfgs_options=None,options=None): OptimalControlProblem.__init__(self,y0,yT,T,J,grad_J,Lbfgs_options,options) self.parallel_J=parallel_J self.parallel_grad_J = parallel_grad_J self.comm = MPI.COMM_WORLD self.rank = self.comm.Get_rank() self.m = self.comm.Get_size() self.local_end = 0
def __init__(self, y0, yT, T, J, grad_J, options=None, implicit=False): OptimalControlProblem.__init__(self, y0, yT, T, J, grad_J, options=options, implicit=implicit) self.end_diff = None
def __init__(self, y0, yT, T, a, alpha, J, grad_J, options=None): OptimalControlProblem.__init__(self, y0, yT, T, J, grad_J, options) self.a = a self.alpha = alpha def JJ(u, y, yT, T): return J(u, y, yT, T, self.alpha) def grad_JJ(u, p, dt): return grad_J(u, p, dt, self.alpha) self.J = JJ self.grad_J = grad_JJ
def __init__(self, y0, yT, T, J, grad_J, decopled_J, decopled_grad, Lbfgs_options=None, options=None, implicit=True): OptimalControlProblem.__init__(self, y0, yT, T, J, grad_J, Lbfgs_options, options, implicit) self.decopled_J = decopled_J self.decopled_grad = decopled_grad
def __init__(self, y0, yT, T, J, grad_J, options=None): OptimalControlProblem.__init__(self, y0, yT, T, J, grad_J, options=options) self.end_diff = None