Class RoutingModel.RouteDimensionTravelInfo.TransitionInfo
- java.lang.Object
-
- com.google.ortools.constraintsolver.RoutingModel.RouteDimensionTravelInfo.TransitionInfo
-
- Enclosing class:
- RoutingModel.RouteDimensionTravelInfo
public static class RoutingModel.RouteDimensionTravelInfo.TransitionInfo extends java.lang.ObjectContains the information for a single transition on the route.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulationThe 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 Modifier and Type Field Description protected booleanswigCMemOwn
-
Constructor Summary
Constructors Constructor Description TransitionInfo()TransitionInfo(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()protected voidfinalize()longgetCompressed_travel_value_lower_bound()The hard lower bound of the compressed travel value that will be
enforced by the scheduling module.static longgetCPtr(RoutingModel.RouteDimensionTravelInfo.TransitionInfo obj)longgetPost_travel_transit_value()longgetPre_travel_transit_value()The parts of the transit which occur pre/post travel between the
nodes.RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulationgetTravel_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.RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulationgetTravel_start_dependent_travel()Models the (real) travel value Tᵣ, for this transition based on the
departure value of the travel.longgetTravel_value_upper_bound()The 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 longswigRelease(RoutingModel.RouteDimensionTravelInfo.TransitionInfo obj)java.lang.StringtoString()java.lang.StringtoString(java.lang.String line_prefix)
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(RoutingModel.RouteDimensionTravelInfo.TransitionInfo obj)
-
swigRelease
public static long swigRelease(RoutingModel.RouteDimensionTravelInfo.TransitionInfo obj)
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
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
public java.lang.String toString(java.lang.String line_prefix)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-