Fuel optimal control of hybrid vehicles door