Skip to content

Commit

Permalink
Add explicit (int)
Browse files Browse the repository at this point in the history
  • Loading branch information
glebbelov committed Jan 15, 2024
1 parent 55c49d4 commit 34afbd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/mp/flat/redef/MIP/abs.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AbsConverter_MIP :
void ConvertCtxPos(const ItemType& ac, int ) {
const int arg = ac.GetArguments()[0];
const int res = ac.GetResultVar();
const int flag = GetMC().AddVar(0.0, 1.0, var::INTEGER);
const int flag = (int)GetMC().AddVar(0.0, 1.0, var::INTEGER);
GetMC().AddConstraint(
IndicatorConstraintLinLE(flag, 1,
{{{1.0, 1.0}, {res, arg}}, 0.0}));
Expand Down
2 changes: 1 addition & 1 deletion include/mp/flat/redef/std/range_con.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class RangeConstraintConverter :
auto body = item.GetBody();
body.add_term(1.0, slk);
AlgConEQ lceq { std::move(body), item.ub() };
int i1 = GetMC().AddConstraint(std::move(lceq));
int i1 = (int)GetMC().AddConstraint(std::move(lceq));
GetSlackLink().AddEntry({i, i1, slk});
}
void ConvertWithRhs(const ItemType& item, RangeRelations rr) {
Expand Down

0 comments on commit 34afbd3

Please sign in to comment.