I'm a novice with R. I'm trying to figure out the functions/packages I can use for a Logistics Optimization problem. For example, how can we maximize routes of trucks to deliver goods given that the company has 5 trucks and each has max. capacity of 500 boxes but unable to reach the max limit.
Kindly see the table below to give you a clearer picture of my sample problem.
TABLE 1. Current Set-up per Truck
TruckNo Current_Cap_Per_Truck Max_Cap Available_Space
1 500 500 0
2 500 500 0
3 300 500 200
4 300 500 200
5 300 500 200
Table 1 shows that Trucks 1 and 2 reached the max capacity, however trucks 3,4 and 5 got only 300 box each. As you can see, there is a total of 600 box to occupy the available space. I was thinking maybe we can adjust the load for trucks 3,4,and 5 so that we can maximize the capacity of each truck and minimize the number of trucks to be used.
Has anyone had a an experience using R package or functions to solve this kind of problem? R offers several optimization packages but I couldnt figure out how to start doing the script. Thank you.