Passenger context model
1. Overview
Manages passenger cancellations, class changes, flight changes, and amount tracking in the flight recovery scheduling system, registering passenger-related constraints and objectives into the column generation model.
1. Dependent Contexts
- task (Flight Task)
- bunch_compilation (Bunch Compilation)
2. Concepts / Entities
1. Passenger
A passenger with an amount and a multi-leg flight list, each leg assigned a passenger class.
2. Flight Passenger (FlightPassenger)
An association linking a passenger to a specific flight with an optional previous leg.
3. Passenger Cancel (PassengerCancel)
Tracks passenger cancellation decision variables in the column generation formulation.
4. Passenger Change (PassengerChange)
Tracks passenger class change and flight change decision variables in the column generation formulation.
5. Passenger Amount (PassengerAmount)
Computes passenger amount expressions per flight and class, accounting for cancellations and changes.
3. Variables
1. Decision Variables
2. Auxiliary Variables
No additional auxiliary variables.
4. Predicates
1. Passenger Status
isCancelled : Flight passenger
isClassChanged : Flight passenger
isFlightChanged : Flight passenger
isTransfer : Passenger
5. Sets
1. Flight Passengers
2. Flights
3. Classes
6. Intermediate Values
1. Passenger Amount Expression
Description: Net passenger amount for flight
7. Assertions
1. Passenger Route Continuity
Description: In a passenger's leg list, the arrival airport of a consecutive leg must match the departure airport of the next leg.
2. Flight Type Consistency
Description: All legs of a passenger must be flight types.
8. Constraints
1. Passenger Cancel Minimization
[CN]: 乘客取消最小化
Description: Minimize the total number of cancelled passengers (objective function term).
2. Passenger Class Change Minimization
[CN]: 乘客舱位变更最小化
Description: Minimize the total number of class-changed passengers (objective function term).
3. Passenger Flight Change Minimization
[CN]: 乘客航班变更最小化
Description: Minimize the total number of flight-changed passengers (objective function term).
4. Passenger Flight Capacity Constraint
[CN]: 航班乘客容量约束
Description: The passenger amount per flight per class must not exceed available capacity.
5. Passenger Route Cancel Constraint
[CN]: 路线取消约束
Description: If any leg of a passenger is cancelled, all legs of the entire route are cancelled.
9. Objective Function (if applicable)
Description: Minimize the weighted sum of passenger cancellations, class changes, and flight changes.
10. Algorithm References
No independent algorithm references in this context.
11. Ubiquitous Language
| Term | Symbol | Definition |
|---|---|---|
| Passenger | A traveler with amount and multi-leg flight list | |
| Flight Passenger | Association between a passenger and a specific flight | |
| Cancel | Number of cancelled passengers | |
| Class Change | Number of passengers changing class | |
| Flight Change | Number of passengers changing flight | |
| Route | route | Sequence of airports visited by a passenger |
12. Design Decisions
| Decision | Alternatives | Rationale | Date |
|---|---|---|---|
| Separate cancel/change modeling | Unified recovery variable | Different business semantics and penalty weights | - |
| Route-level cancel linkage | Independent per-leg cancellation | Passenger experience: partial cancellation is meaningless | - |
13. Change Log
| Version | Change | Reason |
|---|---|---|
| v1 | Initial implementation | Basic passenger domain modeling |