The continuous time scale used before was modified, becoming a discrete time scale. For the purpose of this time scale, each working day is approached by 3 diary shifts of 8 hours each. This modification allows addressing with more detail the cycles of the tanks, which are shorter than the time between arrivals of batches. The set i I of time points was replaced by the set h H of shifts. The velocity of the batches inside the pipeline is important in order to determine at what time they arrive at the tank farm, since it is necessary to convert the batches into the discrete time scale