A method for operating a powertrain in a hybrid vehicle is provided. The method comprises providing torque to drive the vehicle from both an electric drive and an engine, where engine torque is varied within an allowable range. When operating the engine at an edge of the range, the range may be adjusted based on conditions. In this way, it is possible to compensate for an engine that has a variable maximum torque output depending on operating conditions.