Optimisation of a ship’s carrying capacity