mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
add bad job list
This commit is contained in:
parent
322d1d7d13
commit
6b82b90a7f
2 changed files with 6 additions and 6 deletions
|
|
@ -18,8 +18,6 @@
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package jsprit.examples;
|
package jsprit.examples;
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
|
|
||||||
import jsprit.analysis.toolbox.AlgorithmSearchProgressChartListener;
|
import jsprit.analysis.toolbox.AlgorithmSearchProgressChartListener;
|
||||||
import jsprit.analysis.toolbox.GraphStreamViewer;
|
import jsprit.analysis.toolbox.GraphStreamViewer;
|
||||||
import jsprit.analysis.toolbox.Plotter;
|
import jsprit.analysis.toolbox.Plotter;
|
||||||
|
|
@ -34,6 +32,8 @@ import jsprit.instance.reader.VrphGoldenReader;
|
||||||
import jsprit.instance.reader.VrphGoldenReader.VrphType;
|
import jsprit.instance.reader.VrphGoldenReader.VrphType;
|
||||||
import jsprit.util.Examples;
|
import jsprit.util.Examples;
|
||||||
|
|
||||||
|
import java.util.Collection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shows how to benchmark the algorithm on different classical HVRP and FSM instances.
|
* Shows how to benchmark the algorithm on different classical HVRP and FSM instances.
|
||||||
*
|
*
|
||||||
|
|
@ -57,7 +57,7 @@ public class HVRPBenchmarkExample {
|
||||||
//read modified Golden-instance, you can find all relevant instances in jsprit-instances/instances/vrph
|
//read modified Golden-instance, you can find all relevant instances in jsprit-instances/instances/vrph
|
||||||
//you can build various problems, see VrphType doc for more details
|
//you can build various problems, see VrphType doc for more details
|
||||||
new VrphGoldenReader(vrpBuilder, VrphType.HVRPFD).read("input/cn_14mix.txt");
|
new VrphGoldenReader(vrpBuilder, VrphType.HVRPFD).read("input/cn_14mix.txt");
|
||||||
vrpBuilder.addPenaltyVehicles(10.0);
|
// vrpBuilder.addPenaltyVehicles(10.0);
|
||||||
VehicleRoutingProblem vrp = vrpBuilder.build();
|
VehicleRoutingProblem vrp = vrpBuilder.build();
|
||||||
|
|
||||||
//try also input//jsprit-examples/input/algorithmConfig_considerFixedCosts_routeLevel.xml
|
//try also input//jsprit-examples/input/algorithmConfig_considerFixedCosts_routeLevel.xml
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,6 @@
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package jsprit.examples;
|
package jsprit.examples;
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
|
|
||||||
import jsprit.analysis.toolbox.GraphStreamViewer;
|
import jsprit.analysis.toolbox.GraphStreamViewer;
|
||||||
import jsprit.analysis.toolbox.SolutionPrinter;
|
import jsprit.analysis.toolbox.SolutionPrinter;
|
||||||
import jsprit.analysis.toolbox.SolutionPrinter.Print;
|
import jsprit.analysis.toolbox.SolutionPrinter.Print;
|
||||||
|
|
@ -35,6 +33,8 @@ import jsprit.core.problem.vehicle.VehicleTypeImpl;
|
||||||
import jsprit.core.util.Coordinate;
|
import jsprit.core.util.Coordinate;
|
||||||
import jsprit.core.util.Solutions;
|
import jsprit.core.util.Solutions;
|
||||||
|
|
||||||
|
import java.util.Collection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* customers (id,x,y,demand)
|
* customers (id,x,y,demand)
|
||||||
* 1 22 22 18
|
* 1 22 22 18
|
||||||
|
|
@ -113,7 +113,7 @@ public class HVRPExample {
|
||||||
vrpBuilder.addVehicle(vehicle3_1);
|
vrpBuilder.addVehicle(vehicle3_1);
|
||||||
|
|
||||||
//add penaltyVehicles to allow invalid solutions temporarily
|
//add penaltyVehicles to allow invalid solutions temporarily
|
||||||
vrpBuilder.addPenaltyVehicles(5, 1000);
|
// vrpBuilder.addPenaltyVehicles(5, 1000);
|
||||||
|
|
||||||
//set fleetsize finite
|
//set fleetsize finite
|
||||||
vrpBuilder.setFleetSize(FleetSize.FINITE);
|
vrpBuilder.setFleetSize(FleetSize.FINITE);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue