Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <invalid_indicators.h>
Classes | |
struct | VariableAndConstraint |
Public Member Functions | |
absl::Status | ToStatus () const |
void | Sort () |
Sort the elements lexicographically by (constraint ID, variable ID). | |
Public Attributes | |
std::vector< VariableAndConstraint > | invalid_indicators |
Indicator constraints which are invalid because their associated indicator variables are not binary.
This is used internally by solvers to return an error on Solve().
Definition at line 31 of file invalid_indicators.h.
void operations_research::math_opt::InvalidIndicators::Sort | ( | ) |
Sort the elements lexicographically by (constraint ID, variable ID).
Definition at line 53 of file invalid_indicators.cc.
absl::Status operations_research::math_opt::InvalidIndicators::ToStatus | ( | ) | const |
Returns an error listing at most kMaxNonBinaryIndicatorVariables indicator constraints whose indicator variables are not binary. Returns OK status if this object is empty.
Definition at line 30 of file invalid_indicators.cc.
std::vector<VariableAndConstraint> operations_research::math_opt::InvalidIndicators::invalid_indicators |
The variable and constraint pairs associated with indicator constraints whose indicator variables are not binary.
Definition at line 47 of file invalid_indicators.h.