OR-Tools  9.6
sat/util.cc File Reference

Go to the source code of this file.

Namespaces

 operations_research
 Collection of objects used to extend the Constraint Solver library.
 
 operations_research::sat
 

Functions

std::string FormatCounter (int64_t num)
 
void RandomizeDecisionHeuristic (absl::BitGenRef random, SatParameters *parameters)
 
int64_t ModularInverse (int64_t x, int64_t m)
 
int64_t PositiveMod (int64_t x, int64_t m)
 
int64_t ProductWithModularInverse (int64_t coeff, int64_t mod, int64_t rhs)
 
bool SolveDiophantineEquationOfSizeTwo (int64_t &a, int64_t &b, int64_t &cte, int64_t &x0, int64_t &y0)
 
int64_t FloorSquareRoot (int64_t a)
 
int64_t CeilSquareRoot (int64_t a)
 
int64_t ClosestMultiple (int64_t value, int64_t base)
 
bool LinearInequalityCanBeReducedWithClosestMultiple (int64_t base, const std::vector< int64_t > &coeffs, const std::vector< int64_t > &lbs, const std::vector< int64_t > &ubs, int64_t rhs, int64_t *new_rhs)
 
int MoveOneUnprocessedLiteralLast (const absl::btree_set< LiteralIndex > &processed, int relevant_prefix_size, std::vector< Literal > *literals)
 
void CompressTuples (absl::Span< const int64_t > domain_sizes, std::vector< std::vector< int64_t >> *tuples)
 
std::vector< std::vector< absl::InlinedVector< int64_t, 2 > > > FullyCompressTuples (absl::Span< const int64_t > domain_sizes, std::vector< std::vector< int64_t >> *tuples)