therefore, all the future possible nodes are obtained. This process repeats as long as all the loading semi trailers are chosen. At the last iteration the node which has the highest cost is chosen as the final node. The path from the initial node up to the final node is loading and unloading optimal policy.