14 #ifndef OR_TOOLS_SAT_PSEUDO_COSTS_H_ 15 #define OR_TOOLS_SAT_PSEUDO_COSTS_H_ 39 void UpdateCost(
const std::vector<VariableBoundChange>& bound_changes,
40 IntegerValue obj_bound_improvement);
48 return pseudo_costs_[
var].CurrentAverage();
55 return pseudo_costs_[
var].NumRecords();
60 void UpdateCostForVar(IntegerVariable
var,
double new_cost);
73 LiteralIndex decision, Model*
model);
78 #endif // OR_TOOLS_SAT_PSEUDO_COSTS_H_
IntegerVariable GetBestDecisionVar()
Class that owns everything related to a particular optimization model.
double GetCost(IntegerVariable var) const
#define CHECK_LT(val1, val2)
IntegerValue lower_bound_change
PseudoCosts(Model *model)
void UpdateCost(const std::vector< VariableBoundChange > &bound_changes, IntegerValue obj_bound_improvement)
Collection of objects used to extend the Constraint Solver library.
const IntegerVariable kNoIntegerVariable(-1)
std::vector< PseudoCosts::VariableBoundChange > GetBoundChanges(LiteralIndex decision, Model *model)
int GetRecordings(IntegerVariable var) const