geConstraints.addConstraint(fi, prob, 1);
}
constraintsList.add(geConstraints);
}
else if (penaltyOption.value.equalsIgnoreCase("l2")) {
OneLabelL2RangeGEConstraints geConstraints = new OneLabelL2RangeGEConstraints();
for (int fi : constraints.keySet()) {
double[][] dist = constraints.get(fi);
for (int li = 0; li < dist.length; li++) {
if (!Double.isInfinite(dist[li][0])) {
geConstraints.addConstraint(fi, li, dist[li][0], dist[li][1], 1);
}
}
}
constraintsList.add(geConstraints);
}