Classes | |
class | CallBack |
Functions | |
def | cost (U) |
def | display (U, verbose=False) |
Variables | |
approx_grad | |
list | bounds = [ [-env.umax,env.umax], ]*env.nu*NSTEPS |
c | |
callback = CallBack() | |
cost | |
env = Pendulum(1) | |
info | |
int | NSTEPS = 50 |
True | |
U | |
U0 = zero(NSTEPS*env.nu)-env.umax | |
— OCP resolution More... | |
x0 = env.reset().copy() | |
Example of optimal control resolution by direct optimization of a single trajectory.
def ocp.cost | ( | U | ) |