![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Definition at line 182 of file implied_bounds.h.
#include <implied_bounds.h>
Public Member Functions | |
| ElementEncodings ()=default | |
| void | Add (IntegerVariable var, const std::vector< ValueLiteralPair > &encoding, int exactly_one_index) |
| const absl::btree_map< int, std::vector< ValueLiteralPair > > & | Get (IntegerVariable var) |
| Returns an empty map if there is no such encoding. | |
| const std::vector< IntegerVariable > & | GetElementEncodedVariables () const |
| Get an unsorted set of variables appearing in element encodings. | |
|
default |
| void operations_research::sat::ElementEncodings::Add | ( | IntegerVariable | var, |
| const std::vector< ValueLiteralPair > & | encoding, | ||
| int | exactly_one_index ) |
Register the fact that var = sum literal * value with sum literal == 1.
Definition at line 220 of file implied_bounds.cc.
| const absl::btree_map< int, std::vector< ValueLiteralPair > > & operations_research::sat::ElementEncodings::Get | ( | IntegerVariable | var | ) |
Returns an empty map if there is no such encoding.
Definition at line 230 of file implied_bounds.cc.
| const std::vector< IntegerVariable > & operations_research::sat::ElementEncodings::GetElementEncodedVariables | ( | ) | const |
Get an unsorted set of variables appearing in element encodings.
Definition at line 240 of file implied_bounds.cc.