From 40832e4a587e909bd3de3bf62975044104266e54 Mon Sep 17 00:00:00 2001 From: jaipadmakumar Date: Tue, 25 Jul 2017 21:17:00 -0400 Subject: [PATCH] Fixed bug that prevented simulate annealing algorithm from ever performing 'swaps' within a circuit. --- .../org/cellocad/MIT/dnacompiler/BuildCircuitsSimAnnealing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/cellocad/MIT/dnacompiler/BuildCircuitsSimAnnealing.java b/src/main/java/org/cellocad/MIT/dnacompiler/BuildCircuitsSimAnnealing.java index a0822491..7685ccb7 100644 --- a/src/main/java/org/cellocad/MIT/dnacompiler/BuildCircuitsSimAnnealing.java +++ b/src/main/java/org/cellocad/MIT/dnacompiler/BuildCircuitsSimAnnealing.java @@ -313,7 +313,7 @@ private Gate getNextGate(LogicCircuit lc, Gate A_gate) { } //allow non-duplicate groups - if (!currentlyAssignedGroup(lc, g.Group)) { + if (!currentlyAssignedGroup(lc, g.Group) || isNextGateCurrentlyUsed(lc, g)) { allowed_B_gates.put(g.Name, g); }