Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::sat::AffineExpression Struct Reference

Detailed Description

Definition at line 280 of file integer_base.h.

#include <integer_base.h>

Public Member Functions

 AffineExpression ()=default
 AffineExpression (IntegerValue cst)
 AffineExpression (IntegerVariable v)
 AffineExpression (IntegerVariable v, IntegerValue c)
 AffineExpression (IntegerVariable v, IntegerValue c, IntegerValue cst)
IntegerLiteral GreaterOrEqual (IntegerValue bound) const
IntegerLiteral LowerOrEqual (IntegerValue bound) const
AffineExpression Negated () const
AffineExpression MultipliedBy (IntegerValue multiplier) const
bool operator== (AffineExpression o) const
IntegerValue ValueAt (IntegerValue var_value) const
double LpValue (const util_intops::StrongVector< IntegerVariable, double > &lp_values) const
bool IsConstant () const

Public Attributes

IntegerVariable var = kNoIntegerVariable
IntegerValue coeff = IntegerValue(0)
IntegerValue constant = IntegerValue(0)

Friends

template<typename Sink>
void AbslStringify (Sink &sink, const AffineExpression &expr)

Constructor & Destructor Documentation

◆ AffineExpression() [1/5]

operations_research::sat::AffineExpression::AffineExpression ( )
default

◆ AffineExpression() [2/5]

operations_research::sat::AffineExpression::AffineExpression ( IntegerValue cst)
inline

Definition at line 283 of file integer_base.h.

◆ AffineExpression() [3/5]

operations_research::sat::AffineExpression::AffineExpression ( IntegerVariable v)
inline

Definition at line 285 of file integer_base.h.

◆ AffineExpression() [4/5]

operations_research::sat::AffineExpression::AffineExpression ( IntegerVariable v,
IntegerValue c )
inline

Definition at line 287 of file integer_base.h.

◆ AffineExpression() [5/5]

operations_research::sat::AffineExpression::AffineExpression ( IntegerVariable v,
IntegerValue c,
IntegerValue cst )
inline

Definition at line 289 of file integer_base.h.

Member Function Documentation

◆ GreaterOrEqual()

IntegerLiteral operations_research::sat::AffineExpression::GreaterOrEqual ( IntegerValue bound) const
inline

Definition at line 656 of file integer_base.h.

◆ IsConstant()

bool operations_research::sat::AffineExpression::IsConstant ( ) const
inline

Definition at line 326 of file integer_base.h.

◆ LowerOrEqual()

IntegerLiteral operations_research::sat::AffineExpression::LowerOrEqual ( IntegerValue bound) const
inline

Definition at line 668 of file integer_base.h.

◆ LpValue()

double operations_research::sat::AffineExpression::LpValue ( const util_intops::StrongVector< IntegerVariable, double > & lp_values) const
inline

Definition at line 320 of file integer_base.h.

◆ MultipliedBy()

AffineExpression operations_research::sat::AffineExpression::MultipliedBy ( IntegerValue multiplier) const
inline

Definition at line 305 of file integer_base.h.

◆ Negated()

AffineExpression operations_research::sat::AffineExpression::Negated ( ) const
inline

Definition at line 300 of file integer_base.h.

◆ operator==()

bool operations_research::sat::AffineExpression::operator== ( AffineExpression o) const
inline

Definition at line 310 of file integer_base.h.

◆ ValueAt()

IntegerValue operations_research::sat::AffineExpression::ValueAt ( IntegerValue var_value) const
inline

Definition at line 315 of file integer_base.h.

◆ AbslStringify

template<typename Sink>
void AbslStringify ( Sink & sink,
const AffineExpression & expr )
friend

Definition at line 329 of file integer_base.h.

Member Data Documentation

◆ coeff

IntegerValue operations_research::sat::AffineExpression::coeff = IntegerValue(0)

Definition at line 344 of file integer_base.h.

◆ constant

IntegerValue operations_research::sat::AffineExpression::constant = IntegerValue(0)

Definition at line 345 of file integer_base.h.

◆ var

IntegerVariable operations_research::sat::AffineExpression::var = kNoIntegerVariable

Definition at line 343 of file integer_base.h.


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