continue re-architecture of CP-SAT search
This commit is contained in:
@@ -162,7 +162,8 @@ class CoreBasedOptimizer {
|
||||
Model* model);
|
||||
|
||||
// TODO(user): Change the algo slighlty to allow resuming from the last
|
||||
// aborted position.
|
||||
// aborted position. Currently, the search is "resumable", but it will restart
|
||||
// some of the work already done, so it might just never find anything.
|
||||
SatSolver::Status Optimize();
|
||||
|
||||
private:
|
||||
@@ -209,6 +210,10 @@ class CoreBasedOptimizer {
|
||||
IntegerValue stratification_threshold_;
|
||||
std::function<void()> feasible_solution_observer_;
|
||||
|
||||
// This is used to not add the objective equation more than once if we
|
||||
// solve in "chunk".
|
||||
bool already_switched_to_linear_scan_ = false;
|
||||
|
||||
// Set to true when we need to abort early.
|
||||
//
|
||||
// TODO(user): This is only used for the stop after first solution parameter
|
||||
|
||||
Reference in New Issue
Block a user