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

#include <routing_cuts.h>

Public Member Functions

 NodeExpression ()
 NodeExpression (IntegerVariable var, IntegerValue coeff, IntegerValue offset)
 NodeExpression (const AffineExpression &expr)
bool IsEmpty () const
IntegerValue ValueAt (IntegerValue x) const
NodeExpression Negated () const

Public Attributes

IntegerVariable var
IntegerValue coeff
IntegerValue offset

Detailed Description

A coeff * var + offset affine expression, where var is always a positive reference (contrary to AffineExpression, where the coefficient is always positive).

Definition at line 69 of file routing_cuts.h.

Constructor & Destructor Documentation

◆ NodeExpression() [1/3]

operations_research::sat::NodeExpression::NodeExpression ( )
inline

Definition at line 74 of file routing_cuts.h.

◆ NodeExpression() [2/3]

operations_research::sat::NodeExpression::NodeExpression ( IntegerVariable var,
IntegerValue coeff,
IntegerValue offset )
inline

Definition at line 76 of file routing_cuts.h.

◆ NodeExpression() [3/3]

operations_research::sat::NodeExpression::NodeExpression ( const AffineExpression & expr)
inlineexplicit

Definition at line 79 of file routing_cuts.h.

Member Function Documentation

◆ IsEmpty()

bool operations_research::sat::NodeExpression::IsEmpty ( ) const
inline

Definition at line 90 of file routing_cuts.h.

◆ Negated()

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

Definition at line 94 of file routing_cuts.h.

◆ ValueAt()

IntegerValue operations_research::sat::NodeExpression::ValueAt ( IntegerValue x) const
inline

Definition at line 92 of file routing_cuts.h.

Member Data Documentation

◆ coeff

IntegerValue operations_research::sat::NodeExpression::coeff

Definition at line 71 of file routing_cuts.h.

◆ offset

IntegerValue operations_research::sat::NodeExpression::offset

Definition at line 72 of file routing_cuts.h.

◆ var

IntegerVariable operations_research::sat::NodeExpression::var

Definition at line 70 of file routing_cuts.h.


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