Examples of VrphGoldenReader


Examples of jsprit.instance.reader.VrphGoldenReader

    Examples.createOutputFolder();
   
    VehicleRoutingProblem.Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
    //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
    new VrphGoldenReader(vrpBuilder, VrphType.HVRPFD).read("input/cn_14mix.txt");
//    vrpBuilder.addPenaltyVehicles(10.0);
    VehicleRoutingProblem vrp = vrpBuilder.build();
   
    //try also input//jsprit-examples/input/algorithmConfig_considerFixedCosts_routeLevel.xml
    //results might even be a bit better, but it is slower, since it checks insertion on routeLevel
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.