Skip to content

Commit

Permalink
Use stopped2
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 6, 2024
1 parent 67fa445 commit e994966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/or-tools/constraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ void init_constraint(Rice::Module& m) {
// TODO figure out how to use callback with multiple cores
parameters.set_num_search_workers(1);

m.GetOrCreate<TimeLimit>()->RegisterExternalBooleanAsLimit(&stopped);
m.GetOrCreate<TimeLimit>()->RegisterExternalBooleanAsLimit(stopped2);

m.Add(NewFeasibleSolutionObserver(
[&](const CpSolverResponse& r) {
Expand Down

0 comments on commit e994966

Please sign in to comment.