This model has 10 ponds that need to be drained but there are only 5 portable drainage pumps available for draining all the ponds. This model will determine the 5 highest priority ponds to be drained on each day based on the volume in each pond. On each time step of the model, the priority is determined using a lookup table that relates volume to a priority score where 1 = highest priority an 10 = lowest priority. We limit the frequency of moving the portable pumps using the Timed Event to twice per week. An allocator element is used to prioritize the top 5 pumps to be used. The allocator will output a 1 or 0 value depending on whether the pump is on or off. Finally, the allocator output is multiplied by a pump capacity (all 5 pumps assumed to have the same flow capacity).