Implementation of an optimal control energy management strategy in a hybrid truck