The algorithm will find times and locations for the sub-tours based on:
The following criteria will immediately stop the algorithm:
•The tour is invalid for that date (i.e. it’s Available From or Available To is outside of the date selected, or the Tour is Archived)
•The maximum number of Tours has been reached for that day (Lookup Value)
•The maximum number of attendees from 1 School is requested
The locations and times are reduced using the following criteria:
•The locations cannot be already booked at that particular time (unless Tour and Subject are the same between the 2 tours, and the Year Group is only 1 level different)
•The hours must be consecutive (i.e. cannot have a break in-between)
•Rooms may be combined where specified in the location combinations sublist. None of the rooms in the combined rooms can be already booked.
•The room is not part of a combined room that is already booked.
•The maximum number of organised visitors per hour was reached (Lookup Value)
•The maximum number of Sub Tour Types per hour was reached (Lookup Value)
•The maximum number of School Bookings per hour was reached (Lookup Value)
•The maximum number of Schools combined in a single location at a particular time was reached (Lookup Value)
•The maximum number of Students or Teachers in all the bookings at a particular time was reached (Lookup Value)
When multiple locations are available for a particular time, they will be chosen in the following order:
•Any location that is not shared with another tour is chosen before a location that is shared
•Any location that can fit the group without using the float capacity is chosen before a location that requires the float capacity
•In order of the Location Permutation Preference for the Tour
•The smallest room that meets the requirements
If the booking is locked or completed changes cannot be made.
If removing Sub-Tour Group information there must be at least one group for each sub-tour.