23 #ifndef OR_TOOLS_SAT_INTEGER_SEARCH_H_ 24 #define OR_TOOLS_SAT_INTEGER_SEARCH_H_ 109 const std::vector<Literal>& assumptions,
Model*
model);
153 const std::vector<IntegerVariable>& vars,
Model*
model);
161 const std::vector<IntegerVariable>& vars,
Model*
model);
173 const std::vector<BooleanOrIntegerVariable>& vars,
174 const std::vector<IntegerValue>& values,
Model*
model);
189 value_selection_heuristics,
226 incomplete_heuristics,
232 const std::vector<BooleanVariable>& bool_vars,
233 const std::vector<IntegerVariable>& int_vars,
234 const std::function<
void()>& feasible_solution_observer,
Model*
model);
267 #endif // OR_TOOLS_SAT_INTEGER_SEARCH_H_ IntegerLiteral SplitDomainUsingBestSolutionValue(IntegerVariable var, Model *model)
A simple class to enforce both an elapsed time limit and a deterministic time limit in the same threa...
std::vector< std::function< bool()> > callbacks
Class that owns everything related to a particular optimization model.
SatSolver::Status SolveIntegerProblemWithLazyEncoding(Model *model)
std::vector< std::function< BooleanOrIntegerLiteral()> > CompleteHeuristics(const std::vector< std::function< BooleanOrIntegerLiteral()>> &incomplete_heuristics, const std::function< BooleanOrIntegerLiteral()> &completion_heuristic)
IntegerSearchHelper(Model *model)
SatSolver::Status ContinuousProbing(const std::vector< BooleanVariable > &bool_vars, const std::vector< IntegerVariable > &int_vars, const std::function< void()> &feasible_solution_observer, Model *model)
std::function< BooleanOrIntegerLiteral()> SatSolverHeuristic(Model *model)
std::function< bool()> RestartEveryKFailures(int k, SatSolver *solver)
std::function< BooleanOrIntegerLiteral()> fixed_search
std::function< BooleanOrIntegerLiteral()> FollowHint(const std::vector< BooleanOrIntegerVariable > &vars, const std::vector< IntegerValue > &values, Model *model)
LiteralIndex boolean_literal_index
void ConfigureSearchHeuristics(Model *model)
std::function< bool()> SatSolverRestartPolicy(Model *model)
const BooleanVariable kNoBooleanVariable(-1)
std::vector< std::function< BooleanOrIntegerLiteral()> > decision_policies
BooleanOrIntegerLiteral(IntegerLiteral i_lit)
std::function< BooleanOrIntegerLiteral()> hint_search
IntegerLiteral ChooseBestObjectiveValue(IntegerVariable var, Model *model)
std::function< BooleanOrIntegerLiteral()> SequentialValueSelection(std::vector< std::function< IntegerLiteral(IntegerVariable)>> value_selection_heuristics, std::function< BooleanOrIntegerLiteral()> var_selection_heuristic, Model *model)
bool BeforeTakingDecision()
IntegerLiteral GreaterOrEqualToMiddleValue(IntegerVariable var, IntegerTrail *integer_trail)
std::function< BooleanOrIntegerLiteral()> SchedulingSearchHeuristic(Model *model)
IntegerLiteral AtMinValue(IntegerVariable var, IntegerTrail *integer_trail)
SatSolver::Status SolveIntegerProblem(Model *model)
BooleanOrIntegerLiteral()
SatSolver::Status ResetAndSolveIntegerProblem(const std::vector< Literal > &assumptions, Model *model)
BooleanOrIntegerLiteral(LiteralIndex index)
IntegerLiteral integer_literal
IntegerLiteral SplitAroundGivenValue(IntegerVariable var, IntegerValue value, Model *model)
std::function< BooleanOrIntegerLiteral()> next_decision_override
Collection of objects used to extend the Constraint Solver library.
const IntegerVariable kNoIntegerVariable(-1)
std::function< BooleanOrIntegerLiteral()> IntegerValueSelectionHeuristic(std::function< BooleanOrIntegerLiteral()> var_selection_heuristic, Model *model)
std::function< BooleanOrIntegerLiteral()> PseudoCost(Model *model)
const LiteralIndex kNoLiteralIndex(-1)
IntegerLiteral SplitAroundLpValue(IntegerVariable var, Model *model)
bool TakeDecision(Literal decision)
std::function< BooleanOrIntegerLiteral()> UnassignedVarWithLowestMinAtItsMinHeuristic(const std::vector< IntegerVariable > &vars, Model *model)
std::function< BooleanOrIntegerLiteral()> FirstUnassignedVarAtItsMinHeuristic(const std::vector< IntegerVariable > &vars, Model *model)
bool LinearizedPartIsLarge(Model *model)
std::vector< std::function< bool()> > restart_policies
std::function< BooleanOrIntegerLiteral()> SequentialSearch(std::vector< std::function< BooleanOrIntegerLiteral()>> heuristics)
LiteralIndex GetDecision(const std::function< BooleanOrIntegerLiteral()> &f)