14 #ifndef OR_TOOLS_SAT_IMPLIED_BOUNDS_H_
15 #define OR_TOOLS_SAT_IMPLIED_BOUNDS_H_
21 #include "absl/container/flat_hash_map.h"
81 : parameters_(*
model->GetOrCreate<SatParameters>()),
126 const SatParameters& parameters_;
132 std::vector<IntegerLiteral> tmp_integer_literals_;
140 absl::flat_hash_map<std::pair<LiteralIndex, IntegerVariable>, IntegerValue>
148 std::vector<ImpliedBoundEntry> empty_implied_bounds_;
161 int64_t num_deductions_ = 0;
162 int64_t num_enqueued_in_var_to_bounds_ = 0;
const std::vector< IntegerType > & PositionsSetAtLeastOnce() const
ImpliedBounds(Model *model)
bool EnqueueNewDeductions()
const std::vector< ImpliedBoundEntry > & GetImpliedBounds(IntegerVariable var)
void NotifyNewIntegerView(Literal literal)
void Add(Literal literal, IntegerLiteral integer_literal)
const std::vector< IntegerVariable > & VariablesWithImpliedBounds() const
void ProcessIntegerTrail(Literal first_decision)
Class that owns everything related to a particular optimization model.
const IntegerVariable kNoIntegerVariable(-1)
Collection of objects used to extend the Constraint Solver library.
ImpliedBoundEntry(IntegerVariable lit, IntegerValue lb, bool positive)
IntegerVariable literal_view