![]() |
OR-Tools
9.3
|
Definition at line 38 of file piecewise_linear_function.h.
Public Member Functions | |
| PiecewiseSegment (int64_t point_x, int64_t point_y, int64_t slope, int64_t other_point_x) | |
| int64_t | Value (int64_t x) const |
| int64_t | start_x () const |
| int64_t | end_x () const |
| int64_t | start_y () const |
| int64_t | end_y () const |
| int64_t | slope () const |
| int64_t | intersection_y () const |
| void | ExpandEnd (int64_t end_x) |
| void | AddConstantToX (int64_t constant) |
| void | AddConstantToY (int64_t constant) |
| std::string | DebugString () const |
Static Public Member Functions | |
| static bool | SortComparator (const PiecewiseSegment &segment1, const PiecewiseSegment &segment2) |
| static bool | FindComparator (int64_t point, const PiecewiseSegment &segment) |
| PiecewiseSegment | ( | int64_t | point_x, |
| int64_t | point_y, | ||
| int64_t | slope, | ||
| int64_t | other_point_x | ||
| ) |
Definition at line 78 of file piecewise_linear_function.cc.
| void AddConstantToX | ( | int64_t | constant | ) |
Definition at line 242 of file piecewise_linear_function.cc.
| void AddConstantToY | ( | int64_t | constant | ) |
Definition at line 252 of file piecewise_linear_function.cc.
| std::string DebugString | ( | ) | const |
Definition at line 260 of file piecewise_linear_function.cc.
|
inline |
Definition at line 48 of file piecewise_linear_function.h.
|
inline |
Definition at line 52 of file piecewise_linear_function.h.
| void ExpandEnd | ( | int64_t | end_x | ) |
Definition at line 238 of file piecewise_linear_function.cc.
|
static |
Definition at line 233 of file piecewise_linear_function.cc.
|
inline |
Definition at line 56 of file piecewise_linear_function.h.
|
inline |
Definition at line 54 of file piecewise_linear_function.h.
|
static |
Definition at line 228 of file piecewise_linear_function.cc.
|
inline |
Definition at line 46 of file piecewise_linear_function.h.
|
inline |
Definition at line 50 of file piecewise_linear_function.h.
| int64_t Value | ( | int64_t | x | ) | const |
Definition at line 87 of file piecewise_linear_function.cc.