An automated method for controlling a vehicle having an engine and a transmission includes sensing knock activity in the engine. A transmission ratio applicable to the transmission is selected based on the sensed knock activity. This method allows a vehicle to be operated in a fuel-efficient manner while knock-sensitive operating conditions are avoided.