14 #ifndef OR_TOOLS_SAT_LINEAR_CONSTRAINT_MANAGER_H_
15 #define OR_TOOLS_SAT_LINEAR_CONSTRAINT_MANAGER_H_
20 #include "absl/container/flat_hash_map.h"
21 #include "absl/container/flat_hash_set.h"
66 : sat_parameters_(*
model->GetOrCreate<SatParameters>()),
87 std::string extra_info =
"");
112 return constraint_infos_;
118 return lp_constraints_;
151 void ComputeObjectiveParallelism(
const ConstraintIndex ct_index);
156 void RescaleActiveCounts(
double scaling_factor);
160 void PermanentlyRemoveSomeConstraints();
162 const SatParameters& sat_parameters_;
166 bool current_lp_is_changed_ =
false;
169 int64 last_simplification_timestamp_ = 0;
174 std::vector<ConstraintIndex> lp_constraints_;
181 absl::flat_hash_map<size_t, ConstraintIndex> equiv_constraints_;
183 int64 num_merged_constraints_ = 0;
184 int64 num_shortened_constraints_ = 0;
185 int64 num_splitted_constraints_ = 0;
186 int64 num_coeff_strenghtening_ = 0;
189 std::map<std::string, int> type_to_num_cuts_;
191 bool objective_is_defined_ =
false;
192 bool objective_norm_computed_ =
false;
193 double objective_l2_norm_ = 0.0;
210 double constraint_active_count_increase_ = 1.0;
212 int32 num_deletable_constraints_ = 0;
218 #endif // OR_TOOLS_SAT_LINEAR_CONSTRAINT_MANAGER_H_