Java Reference
Java Reference
RoutingDimension.java
Go to the documentation of this file.
65 return mainJNI.RoutingDimension_getTransitValueFromClass(swigCPtr, this, from_index, to_index, vehicle_class);
121 mainJNI.RoutingDimension_setSpanCostCoefficientForVehicle(swigCPtr, this, coefficient, vehicle);
139 mainJNI.RoutingDimension_setCumulVarSoftUpperBound(swigCPtr, this, index, upper_bound, coefficient);
167 mainJNI.RoutingDimension_setCumulVarSoftLowerBound(swigCPtr, this, index, lower_bound, coefficient);
194 public void setBreakIntervalsOfVehicle(IntervalVar[] breaks, int vehicle, int pre_travel_evaluator, int post_travel_evaluator) {
195 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_0(swigCPtr, this, breaks, vehicle, pre_travel_evaluator, post_travel_evaluator);
201 public void setBreakIntervalsOfVehicle(IntervalVar[] breaks, int vehicle, long[] node_visit_transits) {
202 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_1(swigCPtr, this, breaks, vehicle, node_visit_transits);
209 mainJNI.RoutingDimension_SetBreakDistanceDurationOfVehicle(swigCPtr, this, distance, duration, vehicle);
229 public void setBreakIntervalsOfVehicle(IntervalVar[] breaks, int vehicle, long[] node_visit_transits, LongBinaryOperator group_delays) {
230 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_2(swigCPtr, this, breaks, vehicle, node_visit_transits, group_delays);
270 public void setPickupToDeliveryLimitFunctionForPair(IntIntToLongFunction limit_function, int pair_index) {
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:187
RoutingDimension(long cPtr, boolean cMemoryOwn)
Definition: RoutingDimension.java:22
void setSpanCostCoefficientForAllVehicles(long coefficient)
Definition: RoutingDimension.java:124
Represents a function that accepts two int-valued arguments and produces a long-valued result.
Definition: IntIntToLongFunction.java:25
IntVar[] cumuls()
Like CumulVar(), TransitVar(), SlackVar() but return the whole variable vectors instead (indexed by i...
Definition: RoutingDimension.java:94
IntVar slackVar(long index)
Definition: RoutingDimension.java:86
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:166
int GetPostTravelEvaluatorOfVehicle(int vehicle)
Definition: RoutingDimension.java:244
RoutingDimension base_dimension()
Returns the parent in the dependency tree if any or nullptr otherwise.
Definition: RoutingDimension.java:251
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 by...
Definition: RoutingDimension.java:57
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:138
void setBreakIntervalsOfVehicle(IntervalVar[] breaks, int vehicle, long[] node_visit_transits)
Deprecated, sets pre_travel(i, j) = node_visit_transit[i].
Definition: RoutingDimension.java:201
void setBreakIntervalsOfVehicle(IntervalVar[] breaks, int vehicle, long[] node_visit_transits, LongBinaryOperator group_delays)
Deprecated, sets pre_travel(i, j) = node_visit_transit[i] and post_travel(i, j) = group_delays(i,...
Definition: RoutingDimension.java:229
IntVar fixedTransitVar(long index)
Definition: RoutingDimension.java:81
void InitializeBreaks()
Sets up vehicle_break_intervals_, vehicle_break_distance_duration_, pre_travel_evaluators and post_tr...
Definition: RoutingDimension.java:215
The class IntVar is a subset of IntExpr.
RoutingModel model()
Returns the model on which the dimension was created.
Definition: RoutingDimension.java:49
boolean HasBreakConstraints()
Returns true if any break interval or break distance was defined.
Definition: RoutingDimension.java:222
IntVar transitVar(long index)
Definition: RoutingDimension.java:76
boolean hasPickupToDeliveryLimits()
Definition: RoutingDimension.java:274
long GetLocalOptimizerOffsetForVehicle(int vehicle)
Definition: RoutingDimension.java:298
long getCumulVarSoftUpperBound(long index)
Returns the soft upper bound of a cumul variable for a given variable index.
Definition: RoutingDimension.java:152
void setBreakIntervalsOfVehicle(IntervalVar[] breaks, int vehicle, int pre_travel_evaluator, int post_travel_evaluator)
Sets the breaks for a given vehicle.
Definition: RoutingDimension.java:194
long getSpanCostCoefficientForVehicle(int vehicle)
Definition: RoutingDimension.java:286
IntVar[] transits()
Definition: RoutingDimension.java:102
void setGlobalSpanCostCoefficient(long coefficient)
Sets a cost proportional to the global dimension span, that is the difference between the largest val...
Definition: RoutingDimension.java:131
IntVar[] slacks()
Definition: RoutingDimension.java:106
void setSpanUpperBoundForVehicle(long upper_bound, int vehicle)
Sets an upper bound on the dimension span on a given vehicle.
Definition: RoutingDimension.java:113
IntVar cumulVar(long index)
Get the cumul, transit and slack variables for the given node (given as int64 var index).
Definition: RoutingDimension.java:71
long GetGlobalOptimizerOffset()
Definition: RoutingDimension.java:294
void setPickupToDeliveryLimitFunctionForPair(IntIntToLongFunction limit_function, int pair_index)
Definition: RoutingDimension.java:270
long getCumulVarSoftLowerBound(long index)
Returns the soft lower bound of a cumul variable for a given variable index.
Definition: RoutingDimension.java:180
long getSpanUpperBoundForVehicle(int vehicle)
Definition: RoutingDimension.java:282
int GetPreTravelEvaluatorOfVehicle(int vehicle)
Definition: RoutingDimension.java:240
IntervalVar[] getBreakIntervalsOfVehicle(int vehicle)
Returns the break intervals set by SetBreakIntervalsOfVehicle().
Definition: RoutingDimension.java:236
boolean hasCumulVarSoftLowerBound(long index)
Returns true if a soft lower bound has been set for a given variable index.
Definition: RoutingDimension.java:173
long getGlobalSpanCostCoefficient()
Definition: RoutingDimension.java:290
Dimensions represent quantities accumulated at nodes along the routes.
Definition: RoutingDimension.java:18
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:159
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:120
IntVar[] fixed_transits()
Definition: RoutingDimension.java:98
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 vehicl...
Definition: RoutingDimension.java:64
void SetBreakDistanceDurationOfVehicle(long distance, long duration, int vehicle)
With breaks supposed to be consecutive, this forces the distance between breaks of size at least mini...
Definition: RoutingDimension.java:208
Interval variables are often used in scheduling.
void addNodePrecedence(long first_node, long second_node, long offset)
Definition: RoutingDimension.java:278
boolean hasCumulVarSoftUpperBound(long index)
Returns true if a soft upper bound has been set for a given variable index.
Definition: RoutingDimension.java:145
long shortestTransitionSlack(long node)
It makes sense to use the function only for self-dependent dimension.
Definition: RoutingDimension.java:259