settimewindow(new timewindow(start_time, end_time))
is used add time constraints task/shipment. want have complete example. there complete example of jsprit on time bound shipment?
you can set pickup , delivery time windows of shipments way:
shipment shipment = shipment.builder.newinstance("1") .addsizedimension(0,1) .setpickuplocation(location.newinstance(5,7)) .setpickuptimewindow(timewindow.newinstance(0,1200)) .setdeliverylocation(location.newinstance(6,9)) .setdeliverytimewindow(timewindow.newinstance(2000,4000)) .build();
Comments
Post a Comment