This repo, has been reconstructed from the original.
Change to the branch: if crash This branch does not have caching, which is probably the main reason for the MemoryError :/
Only run one and one file.
Try to remove OP5 in the escape_algorithm().
- numpy
python setup.py installfrom pdp_utils import load_problem
prob = load_problem(*PROBLEM_FILE_ADDRESS*)The function returns dictionary that includes the following information about each problem instance:
- 'n_nodes': number of nodes
- 'n_vehicles': number of vehicles
- 'n_calls': number of calls
- 'Cargo': information about each call
- 'TravelTime': for each vehicle the travel time from one node to another
- 'FirstTravelTime': for each vehicle the travel time from starting point to each node
- 'VesselCapacity': the capacity of each vehicle
- 'LoadingTime': for each vehicle the loading time of pickup of each call (-1 indicates not allowed)
- 'UnloadingTime': for each vehicle the un-loading time of pickup of each call (-1 indicates not allowed)
- 'VesselCargo': the list of allowed calls for each vehicle
- 'TravelCost': for each vehicle the travel cost from one node to another
- 'FirstTravelCost': for each vehicle the travel cost from starting point to each node
- 'PortCost': the cost of answering a call for each vehicle (-2 indicates not allowed)
from pdp_utils import feasibility_check
feasible, log = feasibility_check(SOL, prob)
print(log)from pdp_utils import cost_function
cost = cost_function(SOL, prob)