Commit b5112292 authored by lonca's avatar lonca

Added inner optimization mode (-I)

git-svn-id: svn+ssh:// ba638df5-4473-46d1-82f8-c3ae2a17a6e1
parent 3bd6a850
......@@ -42,8 +42,8 @@ import org.sat4j.ILauncherMode;
import org.sat4j.maxsat.reader.WDimacsReader;
import org.sat4j.opt.MinOneDecorator;
import org.sat4j.pb.ConstraintRelaxingPseudoOptDecorator;
import org.sat4j.pb.IPBSolver;
import org.sat4j.pb.PseudoOptDecorator;
import org.sat4j.reader.LecteurDimacs;
import org.sat4j.reader.ParseFormatException;
import org.sat4j.reader.Reader;
......@@ -84,6 +84,7 @@ public class GenericOptLauncher extends AbstractLauncher {
"kind of problem: minone, maxsat, etc.");
options.addOption("i", "incomplete", false,
"incomplete mode for maxsat");
options.addOption("I", "inner mode", false, "optimize using inner mode");
options.addOption("c", "clean databases", false,
"clean up the database at root level");
options.addOption("k", "keep Hot", false,
......@@ -173,7 +174,11 @@ public class GenericOptLauncher extends AbstractLauncher {
if (cmd.hasOption("l")) {
asolver = new ConstraintRelaxingPseudoOptDecorator(
} else {
} else if (cmd.hasOption("I")){
this.wmsd.setSearchListener(new SearchOptimizerListener(ILauncherMode.DECISION));
asolver = this.wmsd;
asolver = new PseudoOptDecorator(this.wmsd, false,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment