How this calculation works
Distributing bulk parcels among holds affects mass, occupied volume and longitudinal loading. A hold can satisfy its volume limit while exceeding a mass limit, and a collection of individually acceptable holds can still violate an aggregate moment or strength constraint. A useful allocation model keeps those different restrictions visible rather than simply filling space greedily.
Enumerate bounded integer allocations; enforce capacities, mass, moment and supplied linear strength limits.A worked example
The prefilled example gives Minimum supplied allocation cost = 9. This demonstration uses supplied example data, not an approved vessel operating condition.
Good to know
Exact bounded enumeration of integer parcelunits, no parcel splitting below a unit. Hold mass/volume, total cargo mass, longitudinal moment and supplied linear strength envelopes enforced. Cost matrix supplied; no automatic hydrostatics, local structure, segregation or global vessel approval.
Reference: stability (opens in a new tab) ↗
Allocation is constrained by more than hold volume
Distributing bulk parcels among holds affects mass, occupied volume and longitudinal loading. A hold can satisfy its volume limit while exceeding a mass limit, and a collection of individually acceptable holds can still violate an aggregate moment or strength constraint. A useful allocation model keeps those different restrictions visible rather than simply filling space greedily.
This calculator solves a bounded finite allocation problem using declared cargo units and vessel-supplied constraints. Its optimum belongs to that discretized model, not to every possible continuous distribution of tonnes. The selected objective measures the entered assignment costs; those costs must have a documented meaning before the winning arrangement can be interpreted beyond an illustrative comparison.
For a related reference calculation, see the Shipping container carton packing calculator.
Read more: stability (opens in a new tab) ↗
Defining parcels and holds
For each parcel type, specify how many indivisible model units must be allocated, the mass per unit and its stowage factor. Unit volume is mass times stowage factor. A unit can represent a chosen bulk increment, but changing that increment changes the finite search and may change what an optimum means.
Each hold needs applicable mass and volume capacities and a longitudinal position on the declared reference. Additional limits may express total cargo or displacement, aggregate longitudinal moment and supplied linear strength restrictions. These inputs are not invented by the optimizer; they must represent the vessel condition and permitted loading information being examined.
What the bounded search proves
An allocation assigns every parcel unit to a hold while satisfying the stated constraints. An exhaustive bounded search can compare all feasible assignments in that finite model and return the least entered cost. Pruning reduces work by abandoning partial assignments that already exceed a limit, but it must not discard a potentially feasible arrangement without a valid reason.
A fully exhausted search with no feasible assignment is different from a resource-limited search that stopped early. Preserve that distinction. A candidate found before a limit is reached can be reported as a feasible candidate if appropriately checked, but it must not be labelled a proven optimum unless the remaining search has been eliminated or bounded correctly.
An exact two-parcel example
Consider two units of parcel A, each 100 tonnes with stowage factor 1 m³/t, and two units of B, each 50 tonnes with stowage factor 2 m³/t. Every unit occupies 100 m³. Two holds each allow 250 tonnes and 300 m³, at longitudinal positions −10 and +10 m on an illustrative reference.
Limit aggregate moment to between −500 and +500 tonne metres. Placing one A and one B in each hold gives 150 tonnes and 200 m³ per hold, with zero moment. If costs per unit are A:[1,3] and B:[4,1] across the two holds, this assignment costs 9. The cheaper unconstrained segregation produces a moment outside the allowed interval.
Mass, volume and moment checks
A complete result should preserve the parcel-by-hold allocation and recompute each hold's mass and volume from it. Summing assigned units by parcel must reproduce every requested quantity. Longitudinal moment is the sum of hold mass times its entered coordinate; coordinate origins and allowable-moment origins must agree for that check to be meaningful.
A supplied linear strength inequality is only as complete as the envelope it represents. A small set of inequalities cannot automatically replace the ship's loading computer or a full hull-girder calculation. The solver does not infer local tank-top pressures, cargo compatibility, segregation restrictions or nonlinear stability effects unless those restrictions are explicitly included in the finite model.
Discretization and objective sensitivity
Finer cargo units can represent a continuous distribution more closely but expand the search rapidly. A resource cap is therefore a model boundary rather than evidence that the vessel cannot be loaded. Report unit size and search completion alongside the allocation, so a practical arithmetic exercise is not mistaken for a proof covering every possible bulk distribution.
Changing costs can select a different feasible arrangement without changing the physical constraints. Do not call that result fuel-optimal, fastest to load or structurally best unless the cost definition actually represents that objective. A transparent generic assignment cost is preferable to an unsupported operational label attached to arbitrary numbers.
Vessel data and practical use
The ship's authorized loading information supplies the relevant hold limits and permitted loading conditions. The search algorithm organizes those supplied quantities; it does not establish their approval or completeness. General stability references explain why mass and moments matter, but they cannot provide interchangeable constraints for every bulk carrier or cargo condition.
Use the calculator for education, model comparisons and checking a documented finite allocation. A real loading plan requires the applicable loading system or documents and qualified assessment of all relevant constraints. The result does not instruct cargo distribution, approve a hold loading pattern or guarantee compliance with stability, strength, cargo or terminal requirements. Exact bounded enumeration of integer parcelunits, no parcel splitting below a unit. Hold mass/volume, total cargo mass, longitudinal moment and supplied linear strength envelopes enforced. Cost matrix supplied; no automatic hydrostatics, local structure, segregation or global vessel approval.
A few questions, answered
Does the finite optimum cover every continuous bulk distribution?
No. It is an optimum over the declared indivisible model units and stated constraints. Unit size and search completion remain part of the result.
Why are mass and volume checked separately?
Different stowage factors can fill a hold before its mass limit is reached, or exceed mass limits while volume remains available.
What if the search limit is reached?
That is an incomplete search, not proof of infeasibility or optimality. Any returned candidate must retain its limited status.
Can arbitrary assignment costs be called loading time?
Only if the cost definition actually represents that quantity. The optimizer does not infer an operational meaning for entered numbers.