Fix AMPL constraint generation

Change-Id: I5481a0bb1ae49620a07c7a5c40d670b084aac61d
This commit is contained in:
Rudi Schlatte
2024-03-20 11:46:02 +01:00
parent 74461a22c2
commit da671e3b47

View File

@@ -63,7 +63,7 @@ public class AMPLGenerator {
out.println("# Constraints. For constraints we don't have name from GUI, must be created");
int counter = 0;
for (JsonNode slo : app.getEffectiveConstraints()) {
out.format("subject to constraint_{} : ", counter);
out.format("subject to constraint_%d : ", counter);
emitCondition(out, slo);
out.println(";");
counter = counter + 1;