![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
#include <elemental_differencer.h>
Public Types | |
using | Key = AttrKeyFor<AttrType> |
Public Member Functions | |
std::vector< Key > | AllKeysSorted () const |
bool | Empty () const |
Indicates that there are no differences for this attribute. |
Public Attributes | |
SymmetricDifference< Key > | keys |
absl::flat_hash_set< Key > | different_values |
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.
using operations_research::math_opt::ElementalDifference::AttributeDifference< AttrType >::Key = AttrKeyFor<AttrType> |
Definition at line 88 of file elemental_differencer.h.
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.
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.
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.
SymmetricDifference<Key> operations_research::math_opt::ElementalDifference::AttributeDifference< AttrType >::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.