Skip to content

Rule context model ​

1. Overview ​

The rule context defines link, restriction, flow-control, and feasibility services used to judge whether a recovered task sequence is legal. It supplies predicates and costs to bunch generation; it is not an independent master model.

1. Dependent Contexts ​

Task, aircraft, and infrastructure time/cost types.


2. Concepts / Entities ​

prevl, succl: predecessor and successor tasks;

splitCostl: link split cost; typel: connecting, stopover, or connection-time-ignoring link.

2. Restriction ​

categoryr: restriction category; weightr: violation weight;

costr: optional violation cost; conditionr: task/airport/aircraft condition.

3. Flow control ​

airportf, scenef, timef, and capacityf describe an arrival/departure flow window and its capacity.


3. Variables ​

No decision or auxiliary variables are registered by RuleContext.


4. Predicates ​

linkType(l) classifies link semantics. violates(t,r) means task t violates restriction r. flowClosed(f) means the flow capacity is zero. feasible(t,t') means the connection time, rule, and aircraft tests pass.


5. Sets ​

L: links; Lconn, Lstop, and Lignore are link subsets. R: restrictions; F: flow-control windows; Tfeas: task transitions accepted by all enabled rules.


6. Intermediate Values ​

The connection service derives a transition time and total violation cost:

Δ(t,t′)=startt′−endt,cost(t,t′)=∑r∈Rweightr1[violates(t,t′,r)]

7. Assertions ​

Every link has two task endpoints, and a connecting link only connects tasks whose airport/time data are defined. A flow window has nonnegative capacity and nonempty time range.


8. Constraints ​

No independent solver rows are registered. Feasibility is a service predicate:

s.t.feasible(t,t′)⟺Δ(t,t′)≥requiredConnectionTime(t,t′)∧¬violates(t,t′,r) ∀r∈Rhard

9. Objective Function (if applicable) ​

None. Transition and restriction costs are inputs to a bunch cost calculator.


10. Algorithm References ​

No standalone algorithm document; FeasibilityJudger, connection-time, and cost calculators implement the predicates.


11. Ubiquitous Language ​

TermSymbolDefinition
linklrelation between consecutive tasks
restrictionrrule limiting a task transition
flow controlfairport/time capacity window
feasibilityfeasibleall enabled rules pass

12. Design Decisions ​

DecisionAlternativeRationale
evaluate rules before column insertionadd invalid bunches then filter in masterkeeps generated columns feasible

13. Change Log ​

VersionChangeReason
1.0Documented rule predicates as a service boundarySeparate feasibility from master variables