Examples of VrpXMLReader


Examples of jsprit.core.problem.io.VrpXMLReader

    /*
     * A solomonReader reads solomon-instance files, and stores the required information in the builder.
     */
//    new SolomonReader(vrpBuilder).read("/Users/schroeder/IdeaProjects/jsprit/jsprit-instances/instances/solomon/R211.txt");
    new VrpXMLReader(vrpBuilder).read("output/R211.xml");
    /*
     * Finally, the problem can be built. By default, transportCosts are crowFlyDistances (as usually used for vrp-instances).
     */
    VehicleRoutingProblem vrp = vrpBuilder.build();

View Full Code Here

Examples of jsprit.core.problem.io.VrpXMLReader

    VehicleRoutingProblem.Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
   
    /*
     * A solomonReader reads solomon-instance files, and stores the required information in the builder.
     */
    new VrpXMLReader(vrpBuilder).read("input/deliveries_solomon_specifiedVehicleEndLocations_c101.xml");
   
    /*
     * Finally, the problem can be built. By default, transportCosts are crowFlyDistances (as usually used for vrp-instances).
     */
    VehicleRoutingProblem vrp = vrpBuilder.build();
View Full Code Here

Examples of jsprit.core.problem.io.VrpXMLReader

    VehicleRoutingProblem.Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
   
    /*
     * A solomonReader reads solomon-instance files, and stores the required information in the builder.
     */
    new VrpXMLReader(vrpBuilder).read("input/pickups_and_deliveries_solomon_r101_withoutTWs_open.xml");
   
    /*
     * Finally, the problem can be built. By default, transportCosts are crowFlyDistances (as usually used for vrp-instances).
     */
   
 
View Full Code Here

Examples of jsprit.core.problem.io.VrpXMLReader

   
    VehicleRoutingProblem.Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
    /*
     * Read cordeau-instance p01, BUT only its services without any vehicles
     */
    new VrpXMLReader(vrpBuilder).read("input/vrp_cordeau_08.xml");
   
    /*
     * add vehicles with its depots
     * 2 depots:
     * (-33,33)
 
View Full Code Here

Examples of jsprit.core.problem.io.VrpXMLReader

    VehicleRoutingProblem.Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
   
    /*
     * A solomonReader reads solomon-instance files, and stores the required information in the builder.
     */
    new VrpXMLReader(vrpBuilder).read("input/pd_christophides_vrpnc1_vcap50.xml");
   

    /*
     * Finally, the problem can be built. By default, transportCosts are crowFlyDistances (as usually used for vrp-instances).
     */
 
View Full Code Here

Examples of jsprit.core.problem.io.VrpXMLReader

public class BuildPDVRPWithShipmentsAlgoFromScratch_IT {

  @Test
  public void test(){
        VehicleRoutingProblem.Builder builder = VehicleRoutingProblem.Builder.newInstance();
        new VrpXMLReader(builder).read("src/test/resources/pdp.xml");

        VehicleRoutingProblem vrp = builder.build();

        final StateManager stateManager = new StateManager(vrp);
        stateManager.updateLoadStates();
View Full Code Here

Examples of jsprit.core.problem.io.VrpXMLReader

  public void doBefore() throws ConfigurationException{
    config = new AlgorithmConfig();
    new AlgorithmConfigXmlReader(config).setSchemaValidation(false).read("src/test/resources/testConfig.xml");
    VehicleRoutingProblem.Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
    solutions = new ArrayList<VehicleRoutingProblemSolution>();
    new VrpXMLReader(vrpBuilder,solutions).read("src/test/resources/finiteVrp.xml");
    vrp = vrpBuilder.build();
  }
View Full Code Here

Examples of jsprit.core.problem.io.VrpXMLReader

  VehicleRoutingAlgorithm vra;
 
  @Before
  public void setup(){
    VehicleRoutingProblem.Builder builder = VehicleRoutingProblem.Builder.newInstance();
    new VrpXMLReader(builder).read("src/test/resources/vrpnc1-jsprit.xml");
    vrp = builder.build();
   
    final StateManager stateManager = new StateManager(vrp);
    stateManager.updateLoadStates();
    stateManager.updateTimeWindowStates();
View Full Code Here

Examples of jsprit.core.problem.io.VrpXMLReader

public class SolomonSkills_IT {

    @Test
    public void itShouldMakeCorrectAssignmentAccordingToSkills(){
        VehicleRoutingProblem.Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
        new VrpXMLReader(vrpBuilder).read("src/test/resources/solomon_c101.xml");
        VehicleRoutingProblem vrp = vrpBuilder.build();

        //y >= 50 skill1 otherwise skill2
        //two vehicles: v1 - skill1 #5; v2 - skill2 #6
        Vehicle solomonVehicle = vrp.getVehicles().iterator().next();
View Full Code Here

Examples of jsprit.core.problem.io.VrpXMLReader

public class MeetTimeWindowConstraint_IT {
 
  @Test
  public void whenEmployingVehicleWithDifferentWorkingShifts_nRoutesShouldBeCorrect(){
    VehicleRoutingProblem.Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
    new VrpXMLReader(vrpBuilder).read("src/test/resources/simpleProblem.xml");
    VehicleRoutingProblem vrp = vrpBuilder.build();
   
    VehicleRoutingAlgorithm vra = new SchrimpfFactory().createAlgorithm(vrp);
    vra.setNuOfIterations(100);
    Collection<VehicleRoutingProblemSolution> solutions = vra.searchSolutions();
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.