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

#include <symmetry.h>

Static Public Member Functions

static std::string GetName ()
template<size_t n>
static constexpr bool Validate (std::array< int64_t, n > &ids)
template<size_t n>
static constexpr void Enforce (std::array< int64_t, n > &ids)
template<typename ElementTypeT, size_t n>
static constexpr void CheckElementTypes (const std::array< ElementTypeT, n > &element_types)

Detailed Description

template<int i, int j>
struct operations_research::math_opt::ElementSymmetry< i, j >

A tag to represent a symmetry between two elements i and j, i.e. the fact that the attribute value for (key[i],key[j]) and (key[j],key[i]) are the same. We internally represent such attribute keys with key[i] <= key[j].

Definition at line 53 of file symmetry.h.

Member Function Documentation

◆ CheckElementTypes()

template<int i, int j>
template<typename ElementTypeT, size_t n>
constexpr void operations_research::math_opt::ElementSymmetry< i, j >::CheckElementTypes ( const std::array< ElementTypeT, n > & element_types)
inlinestaticconstexpr

Definition at line 76 of file symmetry.h.

◆ Enforce()

template<int i, int j>
template<size_t n>
constexpr void operations_research::math_opt::ElementSymmetry< i, j >::Enforce ( std::array< int64_t, n > & ids)
inlinestaticconstexpr

Definition at line 68 of file symmetry.h.

◆ GetName()

template<int i, int j>
std::string operations_research::math_opt::ElementSymmetry< i, j >::GetName ( )
inlinestatic

Definition at line 56 of file symmetry.h.

◆ Validate()

template<int i, int j>
template<size_t n>
constexpr bool operations_research::math_opt::ElementSymmetry< i, j >::Validate ( std::array< int64_t, n > & ids)
inlinestaticconstexpr

Definition at line 61 of file symmetry.h.


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