Preliminary design of a hybrid electric powertrain for a earthmoving machine