Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Types | |
using | IndexType = int |
Public Member Functions | |
DataWrapper (MPModelProto *data) | |
void | SetUp () |
void | SetName (absl::string_view name) |
void | SetObjectiveDirection (bool maximize) |
void | SetObjectiveOffset (double objective_offset) |
int | FindOrCreateConstraint (absl::string_view name) |
void | SetConstraintBounds (int index, double lower_bound, double upper_bound) |
void | SetConstraintCoefficient (int row_index, int col_index, double coefficient) |
void | SetIsLazy (int row_index) |
double | ConstraintLowerBound (int row_index) |
double | ConstraintUpperBound (int row_index) |
int | FindOrCreateVariable (absl::string_view name) |
void | SetVariableTypeToInteger (int index) |
void | SetVariableTypeToSemiContinuous (int index) |
void | SetVariableBounds (int index, double lower_bound, double upper_bound) |
void | SetObjectiveCoefficient (int index, double coefficient) |
double | VariableLowerBound (int index) |
double | VariableUpperBound (int index) |
absl::Status | CreateIndicatorConstraint (absl::string_view cst_name, int var_index, bool var_value) |
void | CleanUp () |
Definition at line 123 of file mps_reader.cc.
using operations_research::glop::DataWrapper< MPModelProto >::IndexType = int |
Definition at line 125 of file mps_reader.cc.
|
inlineexplicit |
Definition at line 126 of file mps_reader.cc.
|
inline |
We detect that the lower bound was not set when it is left to its default value of zero.
Create a new Boolean variable.
bool_var == 0 implies var == 0.
bool_var == 1 implies lb <= var <= ub
var >= bool_var * lb
var <= bool_var * ub
Definition at line 234 of file mps_reader.cc.
|
inline |
Definition at line 173 of file mps_reader.cc.
|
inline |
Definition at line 176 of file mps_reader.cc.
|
inline |
Definition at line 211 of file mps_reader.cc.
|
inline |
Definition at line 144 of file mps_reader.cc.
|
inline |
Definition at line 180 of file mps_reader.cc.
|
inline |
Definition at line 156 of file mps_reader.cc.
|
inline |
Definition at line 160 of file mps_reader.cc.
|
inline |
Definition at line 170 of file mps_reader.cc.
|
inline |
Definition at line 136 of file mps_reader.cc.
|
inline |
Definition at line 201 of file mps_reader.cc.
|
inline |
Definition at line 138 of file mps_reader.cc.
|
inline |
Definition at line 140 of file mps_reader.cc.
|
inline |
Definition at line 128 of file mps_reader.cc.
|
inline |
Definition at line 197 of file mps_reader.cc.
|
inline |
Definition at line 191 of file mps_reader.cc.
|
inline |
Definition at line 194 of file mps_reader.cc.
|
inline |
Definition at line 204 of file mps_reader.cc.
|
inline |
Definition at line 207 of file mps_reader.cc.