In a powertrain for a vehicle that includes an engine, a transmission
having an input, a current gear, an input clutch, a target gear and an
output for driving a load, and an electric machine for driving the load,
a method for performing a gearshift from the current gear to the target
gear comprising the steps of opening the input clutch, releasing a drive
connection between the current gear and the output, producing a drive
connection between the target gear and the output, using the electric
machine to produce torque at the load, closing the input clutch; and
reducing the torque produced by the electric machine.