Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <inverted_bounds.h>
Public Member Functions | |
bool | empty () const |
Returns true if this object contains no variable/constraint ids. | |
absl::Status | ToStatus () const |
Public Attributes | |
std::vector< int64_t > | variables |
Ids of the variables with inverted bounds. | |
std::vector< int64_t > | linear_constraints |
Ids of the linear constraints with inverted bounds. | |
The ids of the variables and linear constraints with inverted bounds (lower_bounds > upper_bounds).
This is used internally by solvers to return an error on Solve() when bounds are inverted.
Definition at line 32 of file inverted_bounds.h.
|
inline |
Returns true if this object contains no variable/constraint ids.
Definition at line 34 of file inverted_bounds.h.
absl::Status operations_research::math_opt::InvertedBounds::ToStatus | ( | ) | const |
Returns an error listing at most kMaxInvertedBounds variables and linear constraints ids (kMaxInvertedBounds of each). Returns OK status if this object is empty.
Definition at line 28 of file inverted_bounds.cc.
std::vector<int64_t> operations_research::math_opt::InvertedBounds::linear_constraints |
Ids of the linear constraints with inverted bounds.
Definition at line 45 of file inverted_bounds.h.
std::vector<int64_t> operations_research::math_opt::InvertedBounds::variables |
Ids of the variables with inverted bounds.
Definition at line 42 of file inverted_bounds.h.