14 #ifndef OR_TOOLS_SAT_PSEUDO_COSTS_H_
15 #define OR_TOOLS_SAT_PSEUDO_COSTS_H_
24 #include "ortools/sat/sat_parameters.pb.h"
44 void UpdateCost(
const std::vector<VariableBoundChange>& bound_changes,
45 IntegerValue obj_bound_improvement);
52 CHECK_LT(
var, pseudo_costs_.size());
53 return pseudo_costs_[
var].CurrentAverage();
59 CHECK_LT(
var, pseudo_costs_.size());
60 return pseudo_costs_[
var].NumRecords();
69 void UpdateCostForVar(IntegerVariable
var,
double new_cost);
72 const SatParameters& parameters_;
Class that owns everything related to a particular optimization model.
IntegerVariable GetBestDecisionVar()
int GetRecordings(IntegerVariable var) const
std::vector< VariableBoundChange > GetBoundChanges(Literal decision)
PseudoCosts(Model *model)
void UpdateCost(const std::vector< VariableBoundChange > &bound_changes, IntegerValue obj_bound_improvement)
double GetCost(IntegerVariable var) const
const IntegerVariable kNoIntegerVariable(-1)
Collection of objects used to extend the Constraint Solver library.
IntegerValue lower_bound_change