Solving an optimal control problem with JuMP

You then probably need to change 0. to zero(m) etc.