Skip to content

Commit

Permalink
Increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hedtke committed Jan 27, 2025
1 parent 392ca74 commit 268ac6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_linexpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ BOOST_AUTO_TEST_CASE(AddInitializerList)
LinExpr l;
l += { x1, x2 };
model.addConstr(l <= 1, "capacity");
// duplicate, but different c'tor:
model.addConstr(LinExpr({ x1, x2 }, { 2.0, 2.0 }) <= 2, "capacity2");
model.setObjsense(Sense::MAXIMIZE);
model.solve();
BOOST_TEST(model.getSolvingStatistic(statistics::PRIMALBOUND) == 1);
Expand Down

0 comments on commit 268ac6b

Please sign in to comment.