18#include "absl/strings/string_view.h"
19#include "absl/types/span.h"
30 return "at_lower_bound";
32 return "at_upper_bound";
42 static constexpr BasisStatus kBasisStatusValues[] = {
47 return absl::MakeConstSpan(kBasisStatusValues);
An object oriented wrapper for quadratic constraints in ModelStorage.
BasisStatus
Status of a variable/constraint in a LP basis.
@ kFixedValue
The variable/constraint has identical finite lower and upper bounds.
@ kBasic
The variable/constraint is basic.
@ kFree
The variable/constraint is free (it has no finite bounds).
@ kAtLowerBound
The variable/constraint is at its lower bound (which must be finite).
@ kAtUpperBound
The variable/constraint is at its upper bound (which must be finite).
static absl::Span< const E > AllValues()
Returns all possible values of the enum.
static std::optional< absl::string_view > ToOptString(E value)