Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
PiecewiseLinearFormulation (long cPtr, boolean cMemoryOwn) | |
synchronized void | delete () |
void | setX_anchors (SWIGTYPE_p_absl__InlinedVectorT_long_8_t value) |
SWIGTYPE_p_absl__InlinedVectorT_long_8_t | getX_anchors () |
void | setY_anchors (SWIGTYPE_p_absl__InlinedVectorT_long_8_t value) |
SWIGTYPE_p_absl__InlinedVectorT_long_8_t | getY_anchors () |
String | toString (String line_prefix) |
String | toString () |
PiecewiseLinearFormulation () | |
Static Public Member Functions | |
static long | getCPtr (PiecewiseLinearFormulation obj) |
static long | swigRelease (PiecewiseLinearFormulation obj) |
Protected Member Functions | |
void | finalize () |
Protected Attributes | |
transient boolean | swigCMemOwn |
The 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.
Definition at line 1912 of file RoutingModel.java.
com.google.ortools.constraintsolver.RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation.PiecewiseLinearFormulation | ( | long | cPtr, |
boolean | cMemoryOwn ) |
Definition at line 1916 of file RoutingModel.java.
com.google.ortools.constraintsolver.RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation.PiecewiseLinearFormulation | ( | ) |
Definition at line 1996 of file RoutingModel.java.
synchronized void com.google.ortools.constraintsolver.RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation.delete | ( | ) |
Definition at line 1942 of file RoutingModel.java.
|
protected |
Definition at line 1938 of file RoutingModel.java.
|
static |
Definition at line 1921 of file RoutingModel.java.
SWIGTYPE_p_absl__InlinedVectorT_long_8_t com.google.ortools.constraintsolver.RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation.getX_anchors | ( | ) |
The set of increasing anchor cumul values for the interpolation.
Definition at line 1962 of file RoutingModel.java.
SWIGTYPE_p_absl__InlinedVectorT_long_8_t com.google.ortools.constraintsolver.RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation.getY_anchors | ( | ) |
The y values used for the interpolation:
For any x anchor value, let i be an index such that
x_anchors[i] ≤ x < x_anchors[i+1], then the y value for x is
y_anchors[i] * (1-λ) + y_anchors[i+1] * λ, with
λ = (x - x_anchors[i]) / (x_anchors[i+1] - x_anchors[i]).
Definition at line 1984 of file RoutingModel.java.
void com.google.ortools.constraintsolver.RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation.setX_anchors | ( | SWIGTYPE_p_absl__InlinedVectorT_long_8_t | value | ) |
The set of increasing anchor cumul values for the interpolation.
Definition at line 1955 of file RoutingModel.java.
void com.google.ortools.constraintsolver.RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation.setY_anchors | ( | SWIGTYPE_p_absl__InlinedVectorT_long_8_t | value | ) |
The y values used for the interpolation:
For any x anchor value, let i be an index such that
x_anchors[i] ≤ x < x_anchors[i+1], then the y value for x is
y_anchors[i] * (1-λ) + y_anchors[i+1] * λ, with
λ = (x - x_anchors[i]) / (x_anchors[i+1] - x_anchors[i]).
Definition at line 1973 of file RoutingModel.java.
|
static |
Definition at line 1925 of file RoutingModel.java.
String com.google.ortools.constraintsolver.RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation.toString | ( | ) |
Definition at line 1992 of file RoutingModel.java.
String com.google.ortools.constraintsolver.RoutingModel.RouteDimensionTravelInfo.TransitionInfo.PiecewiseLinearFormulation.toString | ( | String | line_prefix | ) |
Definition at line 1988 of file RoutingModel.java.
|
protected |
Definition at line 1914 of file RoutingModel.java.