A method for optimizing a braking sequence in a vehicle with automatic
transmission (3) and gearbox (9) and automatic cruise control, which
cruise control controls acceleration and braking to achieve a set speed,
taking into account the distance to the vehicle in front. Data
simulations are carried out continually of how the vehicle will be driven
in the future, for a set of different combinations of engine speed at
which a gear change takes place, gear change step and braking sequence,
and a braking sequence with associated gear change schedule is selected
that will be optimal. The vehicle is equipped with at least two different
braking systems, for example service brake and auxiliary brake (48, 6).
The system selects to brake primarily with the braking system that has
the least tendency to wear.