Research Article

Solution Strategies for a Multiport Container Ship Stowage Problem

Algorithm 1

Exchanging containers between and .

(1) function  EXCHANGES
(2) for    to    do
(3) if    then
(4) for    to    do
(5) ;
(6) COMB;
(7) for all    in  COMB   do
(8)   SWAP;
(9) if     then
(10) Return  ;
(11) Return