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

#include <affine_relation.h>

Public Member Functions

 Relation (int r, int64_t c, int64_t o)
 
 Relation (int r)
 
bool operator== (const Relation &other) const
 

Public Attributes

int representative
 
int64_t coeff
 
int64_t offset
 

Detailed Description

Returns a valid relation of the form x = coeff * representative + offset.

Note
this can return x = x. Non-const because of path-compression.

Definition at line 77 of file affine_relation.h.

Constructor & Destructor Documentation

◆ Relation() [1/2]

operations_research::AffineRelation::Relation::Relation ( int r,
int64_t c,
int64_t o )
inline

Definition at line 82 of file affine_relation.h.

◆ Relation() [2/2]

operations_research::AffineRelation::Relation::Relation ( int r)
inlineexplicit

Definition at line 84 of file affine_relation.h.

Member Function Documentation

◆ operator==()

bool operations_research::AffineRelation::Relation::operator== ( const Relation & other) const
inline

Definition at line 86 of file affine_relation.h.

Member Data Documentation

◆ coeff

int64_t operations_research::AffineRelation::Relation::coeff

Definition at line 79 of file affine_relation.h.

◆ offset

int64_t operations_research::AffineRelation::Relation::offset

Definition at line 80 of file affine_relation.h.

◆ representative

int operations_research::AffineRelation::Relation::representative

Definition at line 78 of file affine_relation.h.


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