Package jsprit.core.problem.vehicle.VehicleImpl

Examples of jsprit.core.problem.vehicle.VehicleImpl.Builder.build()


     * play with these location to see which impact they have on customer-sequences.
     */
    Builder vehicleBuilder1 = VehicleImpl.Builder.newInstance("v1");
    vehicleBuilder1.setStartLocationCoordinate(Coordinate.newInstance(10, 10));
    vehicleBuilder1.setType(vehicleType);
    VehicleImpl vehicle1 = vehicleBuilder1.build();
   
    Builder vehicleBuilder2 = VehicleImpl.Builder.newInstance("v2");
    vehicleBuilder2.setStartLocationCoordinate(Coordinate.newInstance(30, 30)).setEndLocationCoordinate(Coordinate.newInstance(30, 19));
    vehicleBuilder2.setType(vehicleType);
    VehicleImpl vehicle2 = vehicleBuilder2.build();
View Full Code Here


    VehicleImpl vehicle1 = vehicleBuilder1.build();
   
    Builder vehicleBuilder2 = VehicleImpl.Builder.newInstance("v2");
    vehicleBuilder2.setStartLocationCoordinate(Coordinate.newInstance(30, 30)).setEndLocationCoordinate(Coordinate.newInstance(30, 19));
    vehicleBuilder2.setType(vehicleType);
    VehicleImpl vehicle2 = vehicleBuilder2.build();
 
   
    /*
     * build shipments at the required locations, each with a capacity-demand of 1.
     *
 
View Full Code Here

     * get a vehicle-builder and build a vehicle located at (10,10) with type "vehicleType"
     */
    Builder vehicleBuilder = VehicleImpl.Builder.newInstance("vehicle");
    vehicleBuilder.setStartLocationCoordinate(Coordinate.newInstance(10, 10));
    vehicleBuilder.setType(vehicleType);
    VehicleImpl vehicle = vehicleBuilder.build();
   
    /*
     * build services at the required locations, each with a capacity-demand of 1.
     */
    Service service1 = Service.Builder.newInstance("1").addSizeDimension(WEIGHT_INDEX, 1).setCoord(Coordinate.newInstance(5, 7)).build();
View Full Code Here

     * play with these location to see which impact they have on customer-sequences.
     */
    Builder vehicleBuilder1 = VehicleImpl.Builder.newInstance("wheelchair_bus");
    vehicleBuilder1.setStartLocationCoordinate(Coordinate.newInstance(10, 10));
    vehicleBuilder1.setType(vehicleType_wheelchair);
    VehicleImpl vehicle1 = vehicleBuilder1.build();
   
    Builder vehicleBuilder1_2 = VehicleImpl.Builder.newInstance("wheelchair_bus_2");
    vehicleBuilder1_2.setStartLocationCoordinate(Coordinate.newInstance(10, 10));
    vehicleBuilder1_2.setType(vehicleType_wheelchair);
    VehicleImpl vehicle1_2 = vehicleBuilder1_2.build();
View Full Code Here

    VehicleImpl vehicle1 = vehicleBuilder1.build();
   
    Builder vehicleBuilder1_2 = VehicleImpl.Builder.newInstance("wheelchair_bus_2");
    vehicleBuilder1_2.setStartLocationCoordinate(Coordinate.newInstance(10, 10));
    vehicleBuilder1_2.setType(vehicleType_wheelchair);
    VehicleImpl vehicle1_2 = vehicleBuilder1_2.build();
   
    Builder vehicleBuilder2 = VehicleImpl.Builder.newInstance("passenger_bus");
    vehicleBuilder2.setStartLocationCoordinate(Coordinate.newInstance(30, 30)).setEndLocationCoordinate(Coordinate.newInstance(30, 19));
    vehicleBuilder2.setType(vehicleType_solelypassenger);
    VehicleImpl vehicle2 = vehicleBuilder2.build();
View Full Code Here

    VehicleImpl vehicle1_2 = vehicleBuilder1_2.build();
   
    Builder vehicleBuilder2 = VehicleImpl.Builder.newInstance("passenger_bus");
    vehicleBuilder2.setStartLocationCoordinate(Coordinate.newInstance(30, 30)).setEndLocationCoordinate(Coordinate.newInstance(30, 19));
    vehicleBuilder2.setType(vehicleType_solelypassenger);
    VehicleImpl vehicle2 = vehicleBuilder2.build();
   
    Builder vehicleBuilder2_2 = VehicleImpl.Builder.newInstance("passenger_bus_2");
    vehicleBuilder2_2.setStartLocationCoordinate(Coordinate.newInstance(30, 30)).setEndLocationCoordinate(Coordinate.newInstance(30, 19));
    vehicleBuilder2_2.setType(vehicleType_solelypassenger);
    VehicleImpl vehicle2_2 = vehicleBuilder2_2.build();
View Full Code Here

    VehicleImpl vehicle2 = vehicleBuilder2.build();
   
    Builder vehicleBuilder2_2 = VehicleImpl.Builder.newInstance("passenger_bus_2");
    vehicleBuilder2_2.setStartLocationCoordinate(Coordinate.newInstance(30, 30)).setEndLocationCoordinate(Coordinate.newInstance(30, 19));
    vehicleBuilder2_2.setType(vehicleType_solelypassenger);
    VehicleImpl vehicle2_2 = vehicleBuilder2_2.build();
 
   
    /*
     * build shipments at the required locations, each with a capacity-demand of 1.
     *
 
View Full Code Here

     * get a vehicle-builder and build a vehicle located at (10,10) with type "vehicleType"
     */
    Builder vehicleBuilder = VehicleImpl.Builder.newInstance("vehicle");
    vehicleBuilder.setStartLocationCoordinate(Coordinate.newInstance(10, 10));
    vehicleBuilder.setType(vehicleType);
    VehicleImpl vehicle = vehicleBuilder.build();
   
    /*
     * build shipments at the required locations, each with a capacity-demand of 1.
     * 4 shipments
     * 1: (5,7)->(6,9)
View Full Code Here

     * get a vehicle-builder and build a vehicle located at (10,10) with type "vehicleType"
     */
    Builder vehicleBuilder = Builder.newInstance("vehicle");
    vehicleBuilder.setStartLocationCoordinate(Coordinate.newInstance(10, 10));
    vehicleBuilder.setType(vehicleType);
    VehicleImpl vehicle = vehicleBuilder.build();

        Builder vehicle2Builder = Builder.newInstance("vehicle2");
        vehicle2Builder.setStartLocationCoordinate(Coordinate.newInstance(1, 1));
        vehicle2Builder.setType(vehicleType);
        vehicle2Builder.addSkill("drill");
View Full Code Here

        Builder vehicle2Builder = Builder.newInstance("vehicle2");
        vehicle2Builder.setStartLocationCoordinate(Coordinate.newInstance(1, 1));
        vehicle2Builder.setType(vehicleType);
        vehicle2Builder.addSkill("drill");
        VehicleImpl vehicle2 = vehicle2Builder.build();
   
    /*
     * build services at the required locations, each with a capacity-demand of 1.
     */
    Service service1 = Service.Builder.newInstance("1").addSizeDimension(WEIGHT_INDEX, 1).setCoord(Coordinate.newInstance(5, 7)).build();
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.