OR-Tools  9.3
pb_constraint.h File Reference

Go to the source code of this file.

Classes

struct  LiteralWithCoeff
 
class  CanonicalBooleanLinearProblem
 
class  MutableUpperBoundedLinearConstraint
 
struct  PbConstraintsEnqueueHelper
 
struct  PbConstraintsEnqueueHelper::ReasonInfo
 
class  UpperBoundedLinearConstraint
 
class  PbConstraints
 
class  VariableWithSameReasonIdentifier
 

Namespaces

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

Functions

 DEFINE_STRONG_INT64_TYPE (Coefficient)
 
const Coefficient kCoefficientMax (std::numeric_limits< Coefficient::ValueType >::max())
 
template<typename H >
AbslHashValue (H h, const LiteralWithCoeff &term)
 
std::ostream & operator<< (std::ostream &os, LiteralWithCoeff term)
 
bool ComputeBooleanLinearExpressionCanonicalForm (std::vector< LiteralWithCoeff > *cst, Coefficient *bound_shift, Coefficient *max_value)
 
bool ApplyLiteralMapping (const absl::StrongVector< LiteralIndex, LiteralIndex > &mapping, std::vector< LiteralWithCoeff > *cst, Coefficient *bound_shift, Coefficient *max_value)
 
Coefficient ComputeCanonicalRhs (Coefficient upper_bound, Coefficient bound_shift, Coefficient max_value)
 
Coefficient ComputeNegatedCanonicalRhs (Coefficient lower_bound, Coefficient bound_shift, Coefficient max_value)
 
bool BooleanLinearExpressionIsCanonical (const std::vector< LiteralWithCoeff > &cst)
 
void SimplifyCanonicalBooleanLinearConstraint (std::vector< LiteralWithCoeff > *cst, Coefficient *rhs)