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

Detailed Description

Internal storage representation for a single quadratic constraint.

Implements the interface specified for the ConstraintData parameter of AtomicConstraintStorage.

Definition at line 35 of file storage.h.

#include <storage.h>

Public Types

using IdType = QuadraticConstraintId
using ProtoType = QuadraticConstraintProto
using UpdatesProtoType = QuadraticConstraintUpdatesProto

Public Member Functions

ProtoType Proto () const
std::vector< VariableIdRelatedVariables () 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

Static Public Attributes

static constexpr ElementType kElementType = ElementType::kQuadraticConstraint
static constexpr bool kSupportsElemental = true

Member Typedef Documentation

◆ IdType

◆ ProtoType

◆ UpdatesProtoType

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

◆ kElementType

ElementType operations_research::math_opt::QuadraticConstraintData::kElementType = ElementType::kQuadraticConstraint
staticconstexpr

Definition at line 40 of file storage.h.

◆ kSupportsElemental

bool operations_research::math_opt::QuadraticConstraintData::kSupportsElemental = true
staticconstexpr

Definition at line 41 of file storage.h.

◆ linear_terms

SparseCoefficientMap operations_research::math_opt::QuadraticConstraintData::linear_terms

Definition at line 52 of file storage.h.

◆ lower_bound

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

Definition at line 50 of file storage.h.

◆ name

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

Definition at line 54 of file storage.h.

◆ quadratic_terms

SparseSymmetricMatrix operations_research::math_opt::QuadraticConstraintData::quadratic_terms

Definition at line 53 of file storage.h.

◆ upper_bound

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

Definition at line 51 of file storage.h.


The documentation for this struct was generated from the following files:
  • ortools/math_opt/constraints/quadratic/storage.h
  • ortools/math_opt/constraints/quadratic/storage.cc