A computational study on freight consolidation has demonstrated that an adaptive binary particle swarm optimization algorithm can solve complex cargo-selection challenges within an average gap of 0.0071 percent compared to exact mathematical optima. Published in the Journal of Shipping and Trade by an engineering research team led by Wahyu Kurniawan and Achmad Pratama Rifai, the investigation addresses the operational dilemma faced by consolidation freight forwarders who purchase full container slots and must decide which client shipments to load. In everyday logistics operations, total offered freight routinely exceeds the physical dimensions and payload capacities of standard shipping containers. Freight forwarders cannot treat this merely as a geometric packing exercise, because commercial cargo commitments involve disparate freight revenues, multi-line shipment integrity, differentiated client priority levels, and physical uncertainty where realized cargo volume and mass deviate from paperwork declarations. To resolve these competing requirements, the investigators formulated a service-aware, robust variant of the Container Loading Problem.
The researchers established their decision framework at the tactical cargo-selection tier, which determines shipment acceptance prior to finalizing detailed three-dimensional stowage sequences. Traditional container loading research predominantly focuses on spatial placement, orientation, stacking stability, and axle balancing under deterministic assumptions. In contrast, consolidation practice operates under knapsack-style selection dynamics where forwarders accept or decline orders according to contract values and aggregate thresholds. The study formalizes three operational constraints that govern real-world freight forwarding but are frequently overlooked in classical literature. First, individual cargo lines are grouped into larger shipments that must be accepted or rejected in their entirety to preserve commercial completeness. Second, priority commercial accounts require contractual protection through penalty structures because turning away critical customers inflicts severe long-term business damage. Third, discrepancies between declared and realized cargo dimensions caused by packaging variations or structural deformation require mathematical plans that stay feasible across varied loading realizations rather than relying on nominal declarations alone.
To model operational deviations systematically without assuming arbitrary probability distributions, the authors developed a scenario-based robust formulation rather than a stochastic programming model. Under this design, a single binary selection plan is enforced across four predefined uncertainty scenarios involving discrete volume and weight multipliers. Scenario S1 represents nominal baseline values with unity multipliers for volume and weight. Scenario S2 represents a high-volume state with an eight percent volume increase and nominal weight. Scenario S3 represents a high-mass condition with nominal volume and a seven percent weight expansion. Scenario S4 combines both stress factors simultaneously, testing whether the selected cargo portfolio survives an eight percent volume expansion alongside a seven percent payload increase. By holding the binary cargo-line decision vector constant across all four scenarios, the formulation guarantees that container capacity limits will not be breached during actual dockside operations, preventing physical rejection at the loading terminal while maintaining high overall stowage efficiency.
The underlying decision process was mathematically formulated as a mixed-integer linear programming model that balances freight earnings against service penalties. In the objective function, total selected freight revenue is offset by a substantial penalty term multiplied by unserved priority groups. This penalty parameter is explicitly calibrated to exceed the aggregate potential revenue of the entire cargo manifest, establishing a strict lexicographic preference structure. Under this rule, the optimization engine prioritizes the preservation of high-priority client shipments above marginal revenue gains, admitting priority rejections only when container capacity strictly forbids their accommodation. Complete-shipment groups are governed by binary linking constraints enforcing an all-or-nothing service rule across every constituent cargo line, whereas partial-shipment groups require only one selected cargo item to achieve served status. The mathematical model was implemented in Python using the PuLP library and solved to provable optimality via the CBC branch-and-cut solver across seven controlled instances.
Because exact linear solvers encounter scalability barriers when extended toward multi-container configurations or integrated three-dimensional packing, the researchers engineered and evaluated six metaheuristic algorithms across three foundational algorithmic families. Each family was implemented as both an unadapted baseline and an enhanced adaptive variant to isolate the precise impact of adaptive search mechanisms. The first family investigated was Large Neighborhood Search, contrasting standard uniform operator selection against an Adaptive Large Neighborhood Search that modulates destroy and repair probabilities via historical search performance. The second family comprised trajectory-based Simulated Annealing, comparing traditional temperature-dependent Metropolis acceptance against Adaptive Simulated Annealing equipped with eight specialized neighborhood moves and reward-based operator weights. The third algorithmic family consisted of population-based Binary Particle Swarm Optimization, contrasting standard S-shaped transfer function dynamics with an Adaptive Binary Particle Swarm Optimization framework featuring an arc-tangent V-shaped transfer function, dynamic parameter adjustments, and stagnation-triggered mutation mechanisms.
To guarantee rigorous and unbiased benchmarking across all six computational procedures, the authors deployed a unified solution representation and repair pipeline. Candidate solutions across all algorithms were encoded as binary vectors corresponding to cargo lines, from which shipment-group completion and priority statuses were dynamically deduced. Every generated candidate was evaluated against identical constraint-handling logic: checking complete-shipment consistency, evaluating robust volume and payload feasibility across all four uncertainty scenarios, repairing constraint violations by stripping low-efficiency cargo units, updating service variables, and executing deterministic capacity-filling sweeps to capture unallocated container volume. Across seven controlled benchmark instances comprising current-data configurations and synthetic structures, the CBC solver established exact reference solutions in runtimes spanning 0.057 to 0.600 seconds. In less restrictive benchmark instances, optimal objective values were positive with zero unserved priority orders, whereas under tighter capacity benchmarks, optimal solutions displayed negative objective values as the large lexicographic penalty captured structurally unavoidable priority rejections.
Across the controlled benchmark instances, Adaptive Binary Particle Swarm Optimization achieved the highest solution accuracy among all tested approximate techniques, registering an average optimality gap of just 0.0071 percent. Unadapted Large Neighborhood Search followed closely with an average optimality gap of 0.0328 percent, achieving the same optimal hit frequency as Adaptive BPSO while demonstrating that coordinated destroy-and-repair mechanics naturally align with group-level cargo selection. Baseline BPSO attained a competitive average gap of 0.1271 percent, confirming the suitability of swarm paradigms for binary decision spaces. Adaptive Simulated Annealing recorded an average gap of 0.3768 percent, achieving a dramatic improvement over unadapted Simulated Annealing, which stalled at an average gap of 22.8612 percent due to search entrapment in constrained spaces. However, ALNS produced an average gap of 0.4040 percent, failing to surpass its unadapted counterpart and demonstrating that algorithmic adaptivity does not confer uniform advantages across every heuristic family.
The benchmark experiments further revealed clear operational trade-offs between ultimate solution fidelity and execution duration. While Adaptive BPSO secured superior accuracy, it demanded the highest average runtime at 172.424 seconds per instance on an Intel Core i7-8550U test system with 8 gigabytes of RAM. An analysis of internal operator adaptation confirmed that Adaptive BPSO successfully modulated its behavior depending on instance constraints: synthetic priority-stress benchmarks triggered elevated selection of priority-first mutation operators, accounting for 42.86 percent of mutation activations, while greedy-noise perturbations dominated under volumetric pressure. In the ALNS framework, low-density destroy operators consistently earned the highest historical weight scores, indicating that stripping cargo lines with poor revenue-to-capacity ratios proved most effective for exploratory solution restructuring.
The researchers subsequently verified the methodology using empirical export data from an Indonesian logistics enterprise involving 57 cargo lines organized into 12 shipment groups from eight commercial clients, constrained by a 67.4937 cubic meter volume threshold and a 26,300 kilogram payload limit. Over repeated runs across multiple random seeds, Adaptive BPSO converged to the best-known objective score of negative 3,770.0 in 100 percent of trials with zero variance, attaining convergence by iteration 17. Baseline BPSO reached the identical optimal value in 90 percent of runs with an average objective of negative 3,771.8. In capacity analysis across all evaluated benchmarks, selected robust cargo plans consistently achieved over 98 percent volumetric utilization under worst-case scenario S4, peaking at 99.91 percent. Scenario S2 emerged as the uniquely binding condition for volume while Scenario S3 governed payload limits, proving that robust multi-scenario feasibility safeguards against loading failures without causing conservative, underutilized stowage allocations.
The study authors emphasize several operational boundaries and future research trajectories. Because loading feasibility is assessed via aggregate volume and payload constraints, the current framework serves tactical cargo acceptance and requires pairing with downstream three-dimensional geometric placement engines to verify rotational orientation, physical stacking, and cargo stability. In addition, the finite scenario framework could be expanded to continuous uncertainty sets or data-driven distributions where historical deviation logs exist. The authors also noted that the real-world Indonesian case was benchmarked against best-found heuristic solutions rather than an exact mathematical solver bound. Structurally, when optimal solutions yielded negative scores due to unserved priority commitments, the authors highlighted that such outcomes reflect unavoidable capacity shortages rather than computational breakdown, providing forwarders with quantitative justification to negotiate customer deadlines, split consignments, or secure supplementary container slots.
Subject of Research: Robust cargo selection and adaptive metaheuristic optimization for consolidation freight forwarding
Article Title: Adaptive metaheuristics for solving the container loading problem
Article References: Kurniawan, W., Oktavia, A. T., Riskie, N. U., Normasari, N. M. E., & Rifai, A. P. (2026). Adaptive metaheuristics for solving the container loading problem. Journal of Shipping and Trade, 11(1), Article 34. https://doi.org/10.1186/s41072-026-00249-z
Image Credits: AI Generated
DOI: 10.1186/s41072-026-00249-z
Keywords: container loading problem, freight forwarding, cargo selection, robust optimization, particle swarm optimization, adaptive large neighborhood search, simulated annealing, mixed integer linear programming, supply chain logistics, combinatorial optimization, consolidation shipping, cargo capacity, metaheuristics, shipment planning, algorithmic decision support, freight logistics
Cite Scienmag News
Blake Davidson. (November 17, 2026). Adaptive Swarm Optimization Achieves Near-Optimal Freight Container Loading Under Uncertainty. Scienmag. https://scienmag.com/adaptive-swarm-optimization-achieves-near-optimal-freight-container-loading-under-uncertainty/
Blake Davidson. "Adaptive Swarm Optimization Achieves Near-Optimal Freight Container Loading Under Uncertainty." Scienmag, 17 November 2026, https://scienmag.com/adaptive-swarm-optimization-achieves-near-optimal-freight-container-loading-under-uncertainty/. Accessed 29 November 2026.
Blake Davidson. "Adaptive Swarm Optimization Achieves Near-Optimal Freight Container Loading Under Uncertainty." Scienmag. November 17, 2026. https://scienmag.com/adaptive-swarm-optimization-achieves-near-optimal-freight-container-loading-under-uncertainty/








