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);
53 return pseudo_costs_[
var].CurrentAverage();
60 return pseudo_costs_[
var].NumRecords();
65 void UpdateCostForVar(IntegerVariable
var,
double new_cost);
70 const SatParameters& parameters_;
78 LiteralIndex decision, Model*
model);
#define CHECK_LT(val1, val2)
Class that owns everything related to a particular optimization model.
IntegerVariable GetBestDecisionVar()
int GetRecordings(IntegerVariable var) const
PseudoCosts(Model *model)
void UpdateCost(const std::vector< VariableBoundChange > &bound_changes, IntegerValue obj_bound_improvement)
double GetCost(IntegerVariable var) const
const IntegerVariable kNoIntegerVariable(-1)
std::vector< PseudoCosts::VariableBoundChange > GetBoundChanges(LiteralIndex decision, Model *model)
Collection of objects used to extend the Constraint Solver library.
IntegerValue lower_bound_change