Package jsprit.core.problem.vehicle

Examples of jsprit.core.problem.vehicle.Vehicle


        new VrpXMLWriter(vrp, null).write(infileName);

        VehicleRoutingProblem.Builder vrpToReadBuilder = VehicleRoutingProblem.Builder.newInstance();
        new VrpXMLReader(vrpToReadBuilder, null).read(infileName);
        VehicleRoutingProblem readVrp = vrpToReadBuilder.build();
        Vehicle veh1 = getVehicle("v1",readVrp);

        assertTrue(veh1.getSkills().containsSkill("skill2"));
    }
View Full Code Here


        new VrpXMLWriter(vrp, null).write(infileName);

        VehicleRoutingProblem.Builder vrpToReadBuilder = VehicleRoutingProblem.Builder.newInstance();
        new VrpXMLReader(vrpToReadBuilder, null).read(infileName);
        VehicleRoutingProblem readVrp = vrpToReadBuilder.build();
        Vehicle veh = getVehicle("v1",readVrp);

        assertEquals(0,veh.getSkills().values().size());
    }
View Full Code Here

   
    VehicleRoutingProblem.Builder vrpToReadBuilder = VehicleRoutingProblem.Builder.newInstance();
    new VrpXMLReader(vrpToReadBuilder, null).read(infileName);
    VehicleRoutingProblem readVrp = vrpToReadBuilder.build();

    Vehicle v = getVehicle("v1",readVrp.getVehicles());
    assertEquals("loc",v.getStartLocationId());
    assertEquals("loc",v.getEndLocationId());
   
  }
View Full Code Here

   
    VehicleRoutingProblem.Builder vrpToReadBuilder = VehicleRoutingProblem.Builder.newInstance();
    new VrpXMLReader(vrpToReadBuilder, null).read(infileName);
    VehicleRoutingProblem readVrp = vrpToReadBuilder.build();
   
    Vehicle v = getVehicle("v1",readVrp.getVehicles());
    assertFalse(v.isReturnToDepot());
  }
View Full Code Here

   
    VehicleRoutingProblem.Builder vrpToReadBuilder = VehicleRoutingProblem.Builder.newInstance();
    new VrpXMLReader(vrpToReadBuilder, null).read(infileName);
    VehicleRoutingProblem readVrp = vrpToReadBuilder.build();
   
    Vehicle v = getVehicle("v1",readVrp.getVehicles());
    assertEquals("vehType",v.getType().getTypeId());
  }
View Full Code Here

   
    VehicleRoutingProblem.Builder vrpToReadBuilder = VehicleRoutingProblem.Builder.newInstance();
    new VrpXMLReader(vrpToReadBuilder, null).read(infileName);
    VehicleRoutingProblem readVrp = vrpToReadBuilder.build();
   
    Vehicle v = getVehicle("v2",readVrp.getVehicles());
    assertEquals("vehType2",v.getType().getTypeId());
    assertEquals(200,v.getType().getCapacityDimensions().get(0));
   
  }
View Full Code Here

   
    VehicleRoutingProblem.Builder vrpToReadBuilder = VehicleRoutingProblem.Builder.newInstance();
    new VrpXMLReader(vrpToReadBuilder, null).read(infileName);
    VehicleRoutingProblem readVrp = vrpToReadBuilder.build();
   
    Vehicle v = getVehicle("v2",readVrp.getVehicles());
    assertEquals("startLoc",v.getStartLocationId());
    assertEquals("endLoc",v.getEndLocationId());
  }
View Full Code Here

   
    VehicleRoutingProblem.Builder vrpToReadBuilder = VehicleRoutingProblem.Builder.newInstance();
    new VrpXMLReader(vrpToReadBuilder, null).read(infileName);
    VehicleRoutingProblem readVrp = vrpToReadBuilder.build();
   
    Vehicle v = getVehicle("v2",readVrp.getVehicles());
    assertEquals(1.0,v.getStartLocationCoordinate().getX(),0.01);
    assertEquals(2.0,v.getStartLocationCoordinate().getY(),0.01);
   
    assertEquals(4.0,v.getEndLocationCoordinate().getX(),0.01);
    assertEquals(5.0,v.getEndLocationCoordinate().getY(),0.01);
  }
View Full Code Here

   
    VehicleRoutingProblem.Builder vrpToReadBuilder = VehicleRoutingProblem.Builder.newInstance();
    new VrpXMLReader(vrpToReadBuilder, null).read(infileName);
    VehicleRoutingProblem readVrp = vrpToReadBuilder.build();
   
    Vehicle v = getVehicle("v",readVrp.getVehicles());
    assertEquals(3,v.getType().getCapacityDimensions().getNuOfDimensions());
    assertEquals(100,v.getType().getCapacityDimensions().get(0));
    assertEquals(1000,v.getType().getCapacityDimensions().get(1));
    assertEquals(10000,v.getType().getCapacityDimensions().get(2));
  }
View Full Code Here

   
    VehicleRoutingProblem.Builder vrpToReadBuilder = VehicleRoutingProblem.Builder.newInstance();
    new VrpXMLReader(vrpToReadBuilder, null).read(infileName);
    VehicleRoutingProblem readVrp = vrpToReadBuilder.build();
   
    Vehicle v = getVehicle("v",readVrp.getVehicles());
    assertEquals(11,v.getType().getCapacityDimensions().getNuOfDimensions());
    assertEquals(0,v.getType().getCapacityDimensions().get(9));
    assertEquals(10000,v.getType().getCapacityDimensions().get(10));
  }
View Full Code Here

TOP

Related Classes of jsprit.core.problem.vehicle.Vehicle

Copyright © 2018 www.massapicom. 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.