OR-Tools  9.6
IndicatorConstraintData

Detailed Description

Definition at line 33 of file indicator/storage.h.

Public Types

using IdType = IndicatorConstraintId
 
using ProtoType = IndicatorConstraintProto
 
using UpdatesProtoType = IndicatorConstraintUpdatesProto
 

Public Member Functions

ProtoType Proto () const
 
std::vector< VariableId > RelatedVariables () const
 
void DeleteVariable (VariableId var)
 

Static Public Member Functions

static IndicatorConstraintData 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
 
std::optional< VariableId > indicator
 
bool activate_on_zero = false
 
std::string name
 

Member Typedef Documentation

◆ IdType

using IdType = IndicatorConstraintId

Definition at line 34 of file indicator/storage.h.

◆ ProtoType

using ProtoType = IndicatorConstraintProto

Definition at line 35 of file indicator/storage.h.

◆ UpdatesProtoType

using UpdatesProtoType = IndicatorConstraintUpdatesProto

Definition at line 36 of file indicator/storage.h.

Member Function Documentation

◆ DeleteVariable()

void DeleteVariable ( VariableId  var)

Definition at line 75 of file indicator/storage.cc.

◆ FromProto()

IndicatorConstraintData FromProto ( const ProtoType in_proto)
static

Definition at line 30 of file indicator/storage.cc.

◆ Proto()

Definition at line 47 of file indicator/storage.cc.

◆ RelatedVariables()

std::vector< VariableId > RelatedVariables ( ) const

Definition at line 64 of file indicator/storage.cc.

Member Data Documentation

◆ activate_on_zero

bool activate_on_zero = false

Definition at line 51 of file indicator/storage.h.

◆ indicator

std::optional<VariableId> indicator

Definition at line 50 of file indicator/storage.h.

◆ linear_terms

SparseCoefficientMap linear_terms

Definition at line 47 of file indicator/storage.h.

◆ lower_bound

double lower_bound = -std::numeric_limits<double>::infinity()

Definition at line 45 of file indicator/storage.h.

◆ name

std::string name

Definition at line 52 of file indicator/storage.h.

◆ upper_bound

double upper_bound = std::numeric_limits<double>::infinity()

Definition at line 46 of file indicator/storage.h.


The documentation for this struct was generated from the following files: