Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <storage.h>
Public Types | |
using | IdType = QuadraticConstraintId |
using | ProtoType = QuadraticConstraintProto |
using | UpdatesProtoType = QuadraticConstraintUpdatesProto |
Public Member Functions | |
ProtoType | Proto () const |
std::vector< VariableId > | RelatedVariables () const |
void | DeleteVariable (VariableId var) |
Static Public Member Functions | |
static QuadraticConstraintData | FromProto (const ProtoType &in_proto) |
Public Attributes | |
double | lower_bound = -std::numeric_limits<double>::infinity() |
double | upper_bound = std::numeric_limits<double>::infinity() |
SparseCoefficientMap | linear_terms |
SparseSymmetricMatrix | quadratic_terms |
std::string | name |
Internal storage representation for a single quadratic constraint.
Implements the interface specified for the ConstraintData
parameter of AtomicConstraintStorage
.
using operations_research::math_opt::QuadraticConstraintData::IdType = QuadraticConstraintId |
using operations_research::math_opt::QuadraticConstraintData::ProtoType = QuadraticConstraintProto |
using operations_research::math_opt::QuadraticConstraintData::UpdatesProtoType = QuadraticConstraintUpdatesProto |
void operations_research::math_opt::QuadraticConstraintData::DeleteVariable | ( | VariableId | var | ) |
Definition at line 66 of file storage.cc.
|
static |
The in_proto
must be in a valid state; see the inline comments on QuadraticConstraintProto
for details.
Definition at line 27 of file storage.cc.
QuadraticConstraintData::ProtoType operations_research::math_opt::QuadraticConstraintData::Proto | ( | ) | const |
Definition at line 46 of file storage.cc.
std::vector< VariableId > operations_research::math_opt::QuadraticConstraintData::RelatedVariables | ( | ) | const |
Definition at line 57 of file storage.cc.
SparseCoefficientMap operations_research::math_opt::QuadraticConstraintData::linear_terms |
double operations_research::math_opt::QuadraticConstraintData::lower_bound = -std::numeric_limits<double>::infinity() |
std::string operations_research::math_opt::QuadraticConstraintData::name |
SparseSymmetricMatrix operations_research::math_opt::QuadraticConstraintData::quadratic_terms |
double operations_research::math_opt::QuadraticConstraintData::upper_bound = std::numeric_limits<double>::infinity() |