Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::ElementalDifference::AttributeDifference< AttrType > Struct Template Reference

#include <elemental_differencer.h>

Public Types

using Key = AttrKeyFor<AttrType>

Public Member Functions

std::vector< KeyAllKeysSorted () const
bool Empty () const
 Indicates that there are no differences for this attribute.

Public Attributes

SymmetricDifference< Keykeys
absl::flat_hash_set< Keydifferent_values

Detailed Description

template<typename AttrType>
struct operations_research::math_opt::ElementalDifference::AttributeDifference< AttrType >

The difference for an attribute. E.g. for the attribute DoubleAttr1::kVarLb, we would take AttrType DoubleAttr1.

Definition at line 87 of file elemental_differencer.h.

Member Typedef Documentation

◆ Key

template<typename AttrType>
using operations_research::math_opt::ElementalDifference::AttributeDifference< AttrType >::Key = AttrKeyFor<AttrType>

Definition at line 88 of file elemental_differencer.h.

Member Function Documentation

◆ AllKeysSorted()

template<typename AttrType>
std::vector< typename ElementalDifference::AttributeDifference< AttrType >::Key > operations_research::math_opt::ElementalDifference::AttributeDifference< AttrType >::AllKeysSorted ( ) const

Returns every key in keys or different_values (the keys that the attribute is different on).

Definition at line 213 of file elemental_differencer.h.

◆ Empty()

template<typename AttrType>
bool operations_research::math_opt::ElementalDifference::AttributeDifference< AttrType >::Empty ( ) const

Indicates that there are no differences for this attribute.

Definition at line 229 of file elemental_differencer.h.

Member Data Documentation

◆ different_values

template<typename AttrType>
absl::flat_hash_set<Key> operations_research::math_opt::ElementalDifference::AttributeDifference< AttrType >::different_values

The keys where the attribute has a different non-default value in each Elemental.

Definition at line 96 of file elemental_differencer.h.

◆ keys

The keys with non-default value for this attribute in one Elemental but not the other.

Definition at line 92 of file elemental_differencer.h.


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