Assign ships to appropriate berths at a port based on matching ship size and requirements to berth size and capabilities.
Ignore the dates when the ships require the berth for this example.
The core allocation rule sheet:
NOTE: This example uses the ->next operator to process the berths in a particular order (smallest ones first). See also Passenger Rebooking Rule model for a variation on resource allocation that uses a different technique for stepping through options in a particular order when two different collections must be ordered simultaneously.