Development of a dynamic simulation model for planning physical distribution systems : formulation of the mathematical model