public class LuiShenReader extends Object
| Constructor and Description |
|---|
LuiShenReader(VehicleRoutingProblem.Builder vrpBuilder) |
| Modifier and Type | Method and Description |
|---|---|
void |
read(String instanceFile,
String vehicleFile,
String costScenario)
Reads input files to build Liu Shen problem.
|
void |
setCoordProjectionFactor(double coordProjectionFactor) |
public LuiShenReader(VehicleRoutingProblem.Builder vrpBuilder)
public void read(String instanceFile, String vehicleFile, String costScenario)
The instance-file is a solomon file. The vehicle-file is a txt-file that has the following columns:
Vehicle;Capacity;Cost_a;Cost_b;Cost_c
Concrete vehicleType:
A;100;300;60;30
In the example above, the vehicle-type with typeId A has a capacity of 100, and fixed costs of 100 in cost scenario "a", 300 in "b" and 30 in "c".
instanceFile - is a solomon-instance-filevehicleFile - costScenario - is either "a", "b" or "c"public void setCoordProjectionFactor(double coordProjectionFactor)
Copyright © 2013–2020. All rights reserved.