Class RoutingModel.RouteDimensionTravelInfo
java.lang.Object
com.google.ortools.constraintsolver.RoutingModel.RouteDimensionTravelInfo
- Enclosing class:
- RoutingModel
Contains the information needed by the solver to optimize a dimension's
cumuls with travel-start dependent transit values.
cumuls with travel-start dependent transit values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContains the information for a single transition on the route. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()protected voidfinalize()static longFor each node #i on the route, transition_info[i] contains the relevant
information for the travel between nodes #i and #(i + 1) on the route.longThe cost per unit of travel for this vehicle.voidsetTransition_info(SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__RouteDimensionTravelInfo__TransitionInfo_t value) For each node #i on the route, transition_info[i] contains the relevant
information for the travel between nodes #i and #(i + 1) on the route.voidsetTravel_cost_coefficient(long value) The cost per unit of travel for this vehicle.static longtoString()
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
RouteDimensionTravelInfo
public RouteDimensionTravelInfo(long cPtr, boolean cMemoryOwn) -
RouteDimensionTravelInfo
public RouteDimensionTravelInfo()
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize() -
delete
public void delete() -
setTransition_info
public void setTransition_info(SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__RouteDimensionTravelInfo__TransitionInfo_t value) For each node #i on the route, transition_info[i] contains the relevant
information for the travel between nodes #i and #(i + 1) on the route. -
getTransition_info
public SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__RouteDimensionTravelInfo__TransitionInfo_t getTransition_info()For each node #i on the route, transition_info[i] contains the relevant
information for the travel between nodes #i and #(i + 1) on the route. -
setTravel_cost_coefficient
public void setTravel_cost_coefficient(long value) The cost per unit of travel for this vehicle. -
getTravel_cost_coefficient
public long getTravel_cost_coefficient()The cost per unit of travel for this vehicle. -
toString
-
toString
-