We have constructed a model to calculate in a synthetic way the evolution of stars on the asymptotic giant branch (AGB). The evolution is started at the first thermal pulse (TP) and is terminated when the envelope mass has been lost due to mass loss or when the core mass reaches the Chandrasekhar mass.Our model is more realistic than previous synthetic evolution models in that more physics has been included. The variation of the luminosity during the interpulse period is taken into account as well as the fact that, initially, the first few pulses are not yet at full amplitude and that the luminosity is lower than given by the standard core-mass-luminosity relations. Most of the relations used are metallicity dependent to be able to make a r...