Research Article

Optimization of Railway Mixed Goods Loading Layout considering Stability

Algorithm 3

General block construction algorithm (Taking heavy goods set as an example).
Input heavy goods set , generate maximum number of blocks and effective volume ratio ;
Output General block set
(1)Initialize ,
(2)
(3)while and
(4)
(5) for block in each set
(6)  for block in each set
(7)   A new block is generated by lacing along the three axes of in all possible ways
(8)    If meets the criteria and there is no identical block in the , is put into
(9) and the number does not exceed
(10)  
(11)return