Research Article
Optimization of Railway Mixed Goods Loading Layout considering Stability
Algorithm 2
Simple block construction algorithm (Taking heavy goods set as an example).
| Input heavy goods set , the maximum number of blocks generated ; | | Output simple block set 。 | (1) | Initialize | (2) | for goods in each category | (3) | | (4) | for all permissible ways of placing each class of goods | (5) | for to //arrange the goods times along the axis, where is the quantity of each type of goods | (6) | for to //rearrange the goods times along the axis | (7) | for to //rearrange the goods times along the axis | (8) | if | (9) | Generate block //the sizes are , including , pieces of class goods | (10) | Put into set | (11) | // is the number of simple goods blocks in each set , is the total number of blocks eventually generated | (12) | if | (13) | for goods in each category | (14) | | (15) | Select the top blocks in each category of goods block set and put them into set | (16) | else put all the blocks in set into set | (17) | return |
|