Java Reference
Java Reference
RoutingDimension.java
Go to the documentation of this file.
86 return mainJNI.RoutingDimension_getTransitValueFromClass(swigCPtr, this, from_index, to_index, vehicle_class);
151 mainJNI.RoutingDimension_setSpanCostCoefficientForVehicle(swigCPtr, this, coefficient, vehicle);
181 mainJNI.RoutingDimension_setCumulVarSoftUpperBound(swigCPtr, this, index, upper_bound, coefficient);
222 mainJNI.RoutingDimension_setCumulVarSoftLowerBound(swigCPtr, this, index, lower_bound, coefficient);
268 public void setBreakIntervalsOfVehicle(IntervalVar[] breaks, int vehicle, int pre_travel_evaluator, int post_travel_evaluator) {
269 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_0(swigCPtr, this, breaks, vehicle, pre_travel_evaluator, post_travel_evaluator);
275 public void setBreakIntervalsOfVehicle(IntervalVar[] breaks, int vehicle, long[] node_visit_transits) {
276 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_1(swigCPtr, this, breaks, vehicle, node_visit_transits);
286 mainJNI.RoutingDimension_setBreakDistanceDurationOfVehicle(swigCPtr, this, distance, duration, vehicle);
308 public void setBreakIntervalsOfVehicle(IntervalVar[] breaks, int vehicle, long[] node_visit_transits, LongBinaryOperator delays) {
309 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_2(swigCPtr, this, breaks, vehicle, node_visit_transits, delays);
355 public void setPickupToDeliveryLimitFunctionForPair(IntIntToLongFunction limit_function, int pair_index) {
356 mainJNI.RoutingDimension_setPickupToDeliveryLimitFunctionForPair(swigCPtr, this, limit_function, pair_index);
The class IntVar is a subset of IntExpr.
Interval variables are often used in scheduling.
Dimensions represent quantities accumulated at nodes along the routes.
Definition: RoutingDimension.java:36
long getTransitValueFromClass(long from_index, long to_index, long vehicle_class)
Same as above but taking a vehicle class of the dimension instead of a vehicle (the class of a vehic...
Definition: RoutingDimension.java:85
long getCumulVarSoftLowerBound(long index)
Returns the soft lower bound of a cumul variable for a given variable index.
Definition: RoutingDimension.java:238
long getCumulVarSoftUpperBoundCoefficient(long index)
Returns the cost coefficient of the soft upper bound of a cumul variable for a given variable index.
Definition: RoutingDimension.java:206
void setBreakIntervalsOfVehicle(IntervalVar[] breaks, int vehicle, long[] node_visit_transits)
Deprecated, sets pre_travel(i, j) = node_visit_transit[i].
Definition: RoutingDimension.java:275
long getCumulVarSoftLowerBoundCoefficient(long index)
Returns the cost coefficient of the soft lower bound of a cumul variable for a given variable index.
Definition: RoutingDimension.java:247
synchronized void delete()
Definition: RoutingDimension.java:54
long getTransitValue(long from_index, long to_index, long vehicle)
Returns the transition value for a given pair of nodes (as var index); this value is the one taken b...
Definition: RoutingDimension.java:77
IntVar slackVar(long index)
Definition: RoutingDimension.java:108
RoutingModel model()
Returns the model on which the dimension was created.
Definition: RoutingDimension.java:67
int GetPostTravelEvaluatorOfVehicle(int vehicle)
Definition: RoutingDimension.java:323
RoutingDimension base_dimension()
Returns the parent in the dependency tree if any or nullptr otherwise.
Definition: RoutingDimension.java:330
void setSpanUpperBoundForVehicle(long upper_bound, int vehicle)
Sets an upper bound on the dimension span on a given vehicle.
Definition: RoutingDimension.java:138
IntVar[] fixed_transits()
Definition: RoutingDimension.java:121
void setSpanCostCoefficientForAllVehicles(long coefficient)
Definition: RoutingDimension.java:154
long getCumulVarSoftUpperBound(long index)
Returns the soft upper bound of a cumul variable for a given variable index.
Definition: RoutingDimension.java:197
long getSpanUpperBoundForVehicle(int vehicle)
Definition: RoutingDimension.java:367
IntVar[] cumuls()
Like CumulVar(), TransitVar(), SlackVar() but return the whole variable vectors instead (indexed by ...
Definition: RoutingDimension.java:117
boolean hasCumulVarSoftUpperBound(long index)
Returns true if a soft upper bound has been set for a given variable index.
Definition: RoutingDimension.java:188
void setBreakIntervalsOfVehicle(IntervalVar[] breaks, int vehicle, long[] node_visit_transits, LongBinaryOperator delays)
Deprecated, sets pre_travel(i, j) = node_visit_transit[i] and post_travel(i, j) = delays(i,...
Definition: RoutingDimension.java:308
IntVar cumulVar(long index)
Get the cumul, transit and slack variables for the given node (given as int64_t var index).
Definition: RoutingDimension.java:93
IntVar[] transits()
Definition: RoutingDimension.java:125
void setGlobalSpanCostCoefficient(long coefficient)
Sets a cost proportional to the global dimension span, that is the difference between the largest va...
Definition: RoutingDimension.java:166
long getSpanCostCoefficientForVehicle(int vehicle)
Definition: RoutingDimension.java:371
boolean hasPickupToDeliveryLimits()
Definition: RoutingDimension.java:359
void InitializeBreaks()
Sets up vehicle_break_intervals_, vehicle_break_distance_duration_, pre_travel_evaluators and post_t...
Definition: RoutingDimension.java:293
void setCumulVarSoftUpperBound(long index, long upper_bound, long coefficient)
Sets a soft upper bound to the cumul variable of a given variable index.
Definition: RoutingDimension.java:180
IntervalVar[] getBreakIntervalsOfVehicle(int vehicle)
Returns the break intervals set by SetBreakIntervalsOfVehicle().
Definition: RoutingDimension.java:315
void setBreakIntervalsOfVehicle(IntervalVar[] breaks, int vehicle, int pre_travel_evaluator, int post_travel_evaluator)
Sets the breaks for a given vehicle.
Definition: RoutingDimension.java:268
boolean HasBreakConstraints()
Returns true if any break interval or break distance was defined.
Definition: RoutingDimension.java:300
void addNodePrecedence(long first_node, long second_node, long offset)
Definition: RoutingDimension.java:363
boolean hasCumulVarSoftLowerBound(long index)
Returns true if a soft lower bound has been set for a given variable index.
Definition: RoutingDimension.java:229
long GetGlobalOptimizerOffset()
Definition: RoutingDimension.java:379
void setPickupToDeliveryLimitFunctionForPair(IntIntToLongFunction limit_function, int pair_index)
Definition: RoutingDimension.java:355
long getGlobalSpanCostCoefficient()
Definition: RoutingDimension.java:375
IntVar transitVar(long index)
Definition: RoutingDimension.java:98
int GetPreTravelEvaluatorOfVehicle(int vehicle)
Definition: RoutingDimension.java:319
RoutingDimension(long cPtr, boolean cMemoryOwn)
Definition: RoutingDimension.java:40
IntVar[] slacks()
Definition: RoutingDimension.java:129
IntVar fixedTransitVar(long index)
Definition: RoutingDimension.java:103
long shortestTransitionSlack(long node)
It makes sense to use the function only for self-dependent dimension.
Definition: RoutingDimension.java:344
void setBreakDistanceDurationOfVehicle(long distance, long duration, int vehicle)
With breaks supposed to be consecutive, this forces the distance between breaks of size at least min...
Definition: RoutingDimension.java:285
void setCumulVarSoftLowerBound(long index, long lower_bound, long coefficient)
Sets a soft lower bound to the cumul variable of a given variable index.
Definition: RoutingDimension.java:221
void setSpanCostCoefficientForVehicle(long coefficient, int vehicle)
Sets a cost proportional to the dimension span on a given vehicle, or on all vehicles at once.
Definition: RoutingDimension.java:150
long GetLocalOptimizerOffsetForVehicle(int vehicle)
Definition: RoutingDimension.java:383
Represents a function that accepts two int-valued arguments and produces a long-valued result.
Definition: IntIntToLongFunction.java:27