Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::QuadraticConstraintData Struct Reference

#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
 

Detailed Description

Internal storage representation for a single quadratic constraint.

Implements the interface specified for the ConstraintData parameter of AtomicConstraintStorage.

Definition at line 34 of file storage.h.

Member Typedef Documentation

◆ IdType

Definition at line 35 of file storage.h.

◆ ProtoType

Definition at line 36 of file storage.h.

◆ UpdatesProtoType

Definition at line 37 of file storage.h.

Member Function Documentation

◆ DeleteVariable()

void operations_research::math_opt::QuadraticConstraintData::DeleteVariable ( VariableId var)

Definition at line 66 of file storage.cc.

◆ FromProto()

QuadraticConstraintData operations_research::math_opt::QuadraticConstraintData::FromProto ( const ProtoType & in_proto)
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.

◆ Proto()

QuadraticConstraintData::ProtoType operations_research::math_opt::QuadraticConstraintData::Proto ( ) const

Definition at line 46 of file storage.cc.

◆ RelatedVariables()

std::vector< VariableId > operations_research::math_opt::QuadraticConstraintData::RelatedVariables ( ) const

Definition at line 57 of file storage.cc.

Member Data Documentation

◆ linear_terms

SparseCoefficientMap operations_research::math_opt::QuadraticConstraintData::linear_terms

Definition at line 48 of file storage.h.

◆ lower_bound

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

Definition at line 46 of file storage.h.

◆ name

std::string operations_research::math_opt::QuadraticConstraintData::name

Definition at line 50 of file storage.h.

◆ quadratic_terms

SparseSymmetricMatrix operations_research::math_opt::QuadraticConstraintData::quadratic_terms

Definition at line 49 of file storage.h.

◆ upper_bound

double operations_research::math_opt::QuadraticConstraintData::upper_bound = std::numeric_limits<double>::infinity()

Definition at line 47 of file storage.h.


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