Skip to content

Commit

Permalink
Fix LP Generation
Browse files Browse the repository at this point in the history
Each fixed branching variable is supposed to be seperated by a newline.
  • Loading branch information
TiloW committed Apr 30, 2015
1 parent cdf23cb commit 1f938d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/proof/validator/LeafValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public String generateLinearProgram(Map<CrossingIndex, Boolean> fixedVariables,
Set<CrossingIndex> realizedCrossings = new HashSet<>();
for (Map.Entry<CrossingIndex, Boolean> var : fixedVariables.entrySet()) {
int value = var.getValue() ? 0 : 1;
output.append(createVarName(var.getKey()) + " = " + value);
output.append("\n" + createVarName(var.getKey()) + " = " + value);

if (var.getValue()) {
realizedCrossings.add(var.getKey());
Expand Down

0 comments on commit 1f938d0

Please sign in to comment.