Skip to content

Commit

Permalink
BlackBoxConfigurator.setNogoodOnRestart(false) as default value
Browse files Browse the repository at this point in the history
  • Loading branch information
cprudhom committed Aug 24, 2023
1 parent 6cdd154 commit 2f3aef6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public void parse(Model target, DIMACSParser parser, int i) throws Exception {
parser.model(target, instance);
if (i == 0) {
BlackBoxConfigurator.init()
.setNogoodOnRestart(true)
.setRestartPolicy(
s -> new Restarter(
new GeometricalCutoff(5, 1.05),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class BlackBoxConfigurator {
Function<Solver, AbstractRestart> restartPolicy;

/**
* Set nogood recording in restart (default is true)
* Set nogood recording in restart (default is false)
*/
boolean nogoodOnRestart;

Expand Down Expand Up @@ -130,7 +130,7 @@ public static BlackBoxConfigurator init() {
.setMetaStrategy(Search::lastConflict)
.setRestartPolicy(solver -> AbstractRestart.NO_RESTART)
.setRestartOnSolution(false)
.setNogoodOnRestart(true)
.setNogoodOnRestart(false)
.setExcludeViews(false)
.setExcludeObjective(true);
}
Expand Down

0 comments on commit 2f3aef6

Please sign in to comment.