Class RoutingModel.RouteDimensionTravelInfo.TransitionInfo
java.lang.Object
com.google.ortools.constraintsolver.RoutingModel.RouteDimensionTravelInfo.TransitionInfo
- Enclosing class:
- RoutingModel.RouteDimensionTravelInfo
Contains the information for a single transition on the route.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe following struct defines a piecewise linear formulation, with
int64_t values for the "anchor" x and y values, and potential double
values for the slope of each linear function. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()protected voidfinalize()longThe hard lower bound of the compressed travel value that will be
enforced by the scheduling module.static longlonglongThe parts of the transit which occur pre/post travel between the
nodes.travel_compression_cost models the cost of the difference between the
(real) travel value Tᵣ given by travel_start_dependent_travel and the
compressed travel value considered in the scheduling.Models the (real) travel value Tᵣ, for this transition based on the
departure value of the travel.longThe hard upper bound of the (real) travel value Tᵣ (see
above).voidsetCompressed_travel_value_lower_bound(long value) The hard lower bound of the compressed travel value that will be
enforced by the scheduling module.voidsetPost_travel_transit_value(long value) voidsetPre_travel_transit_value(long value) The parts of the transit which occur pre/post travel between the
nodes.voidsetTravel_compression_cost(RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation value) travel_compression_cost models the cost of the difference between the
(real) travel value Tᵣ given by travel_start_dependent_travel and the
compressed travel value considered in the scheduling.voidsetTravel_start_dependent_travel(RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation value) Models the (real) travel value Tᵣ, for this transition based on the
departure value of the travel.voidsetTravel_value_upper_bound(long value) The hard upper bound of the (real) travel value Tᵣ (see
above).static longtoString()
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
TransitionInfo
public TransitionInfo(long cPtr, boolean cMemoryOwn) -
TransitionInfo
public TransitionInfo()
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize() -
delete
public void delete() -
setTravel_start_dependent_travel
public void setTravel_start_dependent_travel(RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation value) Models the (real) travel value Tᵣ, for this transition based on the
departure value of the travel. -
getTravel_start_dependent_travel
public RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation getTravel_start_dependent_travel()Models the (real) travel value Tᵣ, for this transition based on the
departure value of the travel. -
setTravel_compression_cost
public void setTravel_compression_cost(RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation value) travel_compression_cost models the cost of the difference between the
(real) travel value Tᵣ given by travel_start_dependent_travel and the
compressed travel value considered in the scheduling. -
getTravel_compression_cost
public RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation getTravel_compression_cost()travel_compression_cost models the cost of the difference between the
(real) travel value Tᵣ given by travel_start_dependent_travel and the
compressed travel value considered in the scheduling. -
setPre_travel_transit_value
public void setPre_travel_transit_value(long value) The parts of the transit which occur pre/post travel between the
nodes. The total transit between the two nodes i and j is
= pre_travel_transit_value + travel(i, j) + post_travel_transit_value. -
getPre_travel_transit_value
public long getPre_travel_transit_value()The parts of the transit which occur pre/post travel between the
nodes. The total transit between the two nodes i and j is
= pre_travel_transit_value + travel(i, j) + post_travel_transit_value. -
setPost_travel_transit_value
public void setPost_travel_transit_value(long value) -
getPost_travel_transit_value
public long getPost_travel_transit_value() -
setCompressed_travel_value_lower_bound
public void setCompressed_travel_value_lower_bound(long value) The hard lower bound of the compressed travel value that will be
enforced by the scheduling module. -
getCompressed_travel_value_lower_bound
public long getCompressed_travel_value_lower_bound()The hard lower bound of the compressed travel value that will be
enforced by the scheduling module. -
setTravel_value_upper_bound
public void setTravel_value_upper_bound(long value) The hard upper bound of the (real) travel value Tᵣ (see
above). This value should be chosen so as to prevent
the overall cost of the model
(dimension costs + travel_compression_cost) to overflow. -
getTravel_value_upper_bound
public long getTravel_value_upper_bound()The hard upper bound of the (real) travel value Tᵣ (see
above). This value should be chosen so as to prevent
the overall cost of the model
(dimension costs + travel_compression_cost) to overflow. -
toString
-
toString
-