Commit 79bddb6d authored by Daniel Le Berre's avatar Daniel Le Berre

Fixing condition no longer correct after refactoring.

parent 2c193a23
......@@ -118,7 +118,7 @@ public class PreprocCardConstrLearningSolver<S extends IPBSolver>
private void updateObjMinBound(AtLeastCard card) {
AtMostCard atMost = card.toAtMost();
if (this.objWeightsMap == null)
if (this.objWeightsMap.isEmpty())
List<BigInteger> weights = new ArrayList<BigInteger>();
for (IteratorInt it = atMost.getLits().iterator(); it.hasNext();) {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment