Commit 05284541 authored by ehebrard's avatar ehebrard
Browse files

objective flags

parent 45b7f041
......@@ -66,6 +66,9 @@ int run_algorithm(DTOptions &opt) {
<< endl;
////// SOLVING
cout << "opt.mindepth: " << opt.mindepth << " opt.minsize " << opt.minsize << endl;
if (opt.mindepth) {
if (opt.minsize)
A.minimize_error_depth_size();
......
......@@ -178,13 +178,13 @@ DTOptions blossom::parse_dt(int argc, char *argv[]) {
cmd.add<SwitchArg>(opt.mindepth, "", "depthobjective",
"switch depth objective on", false);
cmd.add<SwitchArg>(opt.mindepth, "", "erroronly",
cmd.add<SwitchArg>(opt.mindepth, "", "nodepthobjective",
"switch depth objective off", true);
cmd.add<SwitchArg>(opt.minsize, "", "sizeobjective",
"switch size objective on", false);
cmd.add<SwitchArg>(opt.minsize, "", "depthonly", "switch size objective off",
cmd.add<SwitchArg>(opt.minsize, "", "nosizeobjective", "switch size objective off",
true);
cmd.add<SwitchArg>(opt.filter, "", "filter",
......
Supports Markdown
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