Show more

master
Ekdohibs 2017-01-03 15:59:51 +01:00
parent 0a28bfcd4d
commit 737ba512c4
1 changed files with 3 additions and 1 deletions

View File

@ -198,7 +198,9 @@ class LinearDualTSP(object):
break
for e in l:
self.add_edge(e)
print("Dual sol should be the same as primal")
print("Dual sol:", dual_fun)
x, fun = self.solve_primal()
print("Primal sol:", fun)
sG = subG(self.G, x, self.edge_mapping)