Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <storage.h>
Public Types | |
using | IdType = ConstraintId |
using | ProtoType = SosConstraintProto |
using | UpdatesProtoType = SosConstraintUpdatesProto |
Public Member Functions | |
SosConstraintData (std::vector< LinearExpressionData > expressions, std::vector< double > weights, std::string name) | |
ProtoType | Proto () const |
std::vector< VariableId > | RelatedVariables () const |
void | DeleteVariable (VariableId var) |
bool | has_weights () const |
double | weight (const int index) const |
const LinearExpressionData & | expression (const int index) const |
int64_t | num_expressions () const |
const std::string & | name () const |
Static Public Member Functions | |
static SosConstraintData | FromProto (const ProtoType &in_proto) |
Internal storage representation for a single SOS constraint.
Implements the interface specified for the ConstraintData
parameter of AtomicConstraintStorage
.
using operations_research::math_opt::internal::SosConstraintData< ConstraintId >::IdType = ConstraintId |
using operations_research::math_opt::internal::SosConstraintData< ConstraintId >::ProtoType = SosConstraintProto |
using operations_research::math_opt::internal::SosConstraintData< ConstraintId >::UpdatesProtoType = SosConstraintUpdatesProto |
|
inline |
void operations_research::math_opt::internal::SosConstraintData< ConstraintId >::DeleteVariable | ( | VariableId | var | ) |
|
inline |
|
static |
|
inline |
|
inline |
|
inline |
SosConstraintData< ConstraintId >::ProtoType operations_research::math_opt::internal::SosConstraintData< ConstraintId >::Proto | ( | ) | const |
std::vector< VariableId > operations_research::math_opt::internal::SosConstraintData< ConstraintId >::RelatedVariables | ( | ) | const |
|
inline |