OR-Tools  9.3
implied_bounds.cc File Reference

Go to the source code of this file.

Namespaces

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

Functions

std::string EncodingStr (const std::vector< ValueLiteralPair > &enc)
 
bool TryToReconcileEncodings (const AffineExpression &size2_affine, const AffineExpression &affine, const std::vector< ValueLiteralPair > &affine_var_encoding, Model *model, LinearConstraintBuilder *builder)
 
bool DetectLinearEncodingOfProducts (const AffineExpression &left, const AffineExpression &right, Model *model, LinearConstraintBuilder *builder)
 
LinearExpression NotLinearizedEnergy ()
 
bool ProductIsLinearized (const LinearExpression &expr)
 
void LinearizeInnerProduct (const std::vector< AffineExpression > &left, const std::vector< AffineExpression > &right, Model *model, std::vector< LinearExpression > *energies)