Skip to content

Framework Example 2: Aircraft Cargo Load Planning — Overview ​

中文

1. Overview ​

This example documents aircraft cargo loading domains and their mode-dependent registration. It is an overview; the eleven bounded-context contracts are maintained on separate pages.

2. Contexts and Dependencies ​

ContextResponsibilityDependency
AircraftAircraft, positions, phases, and limitsInput configuration
StowageAssignment, adjustment, payload, and recommended weightAircraft
MAC and airworthiness securityMoments, balance, and hard safety limitsAircraft, stowage
Soft security and MAC optimizationSafety deviations and balance preferencesAircraft, stowage, and related expressions
Express and loading effectivenessMode-dependent loading preferencesStowage
Redundancy, recommended-weight equalization, payload maximizationMode-specific objectives and limitsStowage

LoadingOrder, FullLoad, Predistribution, and WeightRecommendation register different subsets.

3. Concepts, Sets, and Predicates ​

I is the cargo set, J the position set, and P the flight-phase set. Predicates identify assigned cargo, empty positions, loading areas, valid phases, and mode-specific pipelines. Aircraft supplies configuration data; stowage and safety contexts supply model symbols.

4. Variables and Intermediate Values ​

Core symbols include assignment xij, adjustment uij, payload yj, and recommended weight zj. Intermediate expressions include position load, phase moments and MAC, area density, total payload, empty-position indicators, and recommendation deviations. Their owning context defines the precise domains, units, and activation conditions.

5. Assertions, Constraints, and Objectives ​

Constraints and objectives cover assignment, adjustment ranges, loading limits, moments and airworthiness envelopes, soft-safety deviations, loading order, redundancy, recommendation equalization, and payload maximization. The application mode selects them; one solve does not automatically enable every context.

6. Algorithms and Lifecycle ​

The application selects a mode, initializes aircraft/stowage data, registers mode-specific pipelines, optionally builds Benders decomposition, solves the MILP, and analyzes the selected load plan.

7. Register → Construct → Solve → Analyze ​

Mode selection defines the registration scope. register adds its variables and pipelines; construct builds the model; solve executes the configured MILP or decomposition path; analyze returns positions, payload, MAC, and safety results.

8. Source Entry Points ​

9. Kotlin/Rust Comparison and Design Decisions ​

Both language entry points belong to the aircraft cargo-load framework example. The context pages follow Kotlin ownership and mode-registration boundaries; different modes must not be conflated into a default all-context model.

10. Context Model Pages ​

Open the context index and read the 11 contexts in dependency order: aircraft, stowage, MAC, airworthiness security, soft security, MAC optimization, express effectiveness, loading effectiveness, redundancy, recommended-weight equalization, and payload maximization.

11. Change Log ​

VersionChangeReason
1.1Aligned bilingual overviews, notation, and source entry pointsKeep the overview consistent with its context models