Remove energy vector in the argument list in the constructor of dynamic
programming