Skip to content

Commit

Permalink
Partial fix to idealistic check #200
Browse files Browse the repository at this point in the history
  • Loading branch information
glebbelov committed Aug 31, 2023
1 parent 3f4e3cf commit 668134f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/mp/flat/constr_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ double ComputeViolation(
}
return // recomputed var minus solver's
std::fabs(x[resvar] - x.raw(resvar))
+ x.bounds_viol(resvar);
+ std::max(0.0, x.bounds_viol(resvar));
}


Expand Down
1 change: 1 addition & 0 deletions include/mp/flat/converter.h
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,7 @@ class FlatConverter :
double solinttol_ = 1e-5;
bool dont_use_sol_round_ = false;
bool dont_use_sol_prec_ = false;
int solchkoutlev_ = 0;
};
Options options_;

Expand Down

0 comments on commit 668134f

Please sign in to comment.