Commit 721e58dd authored by LongChan's avatar LongChan
Browse files

runnable

parent d4c582df
...@@ -263,6 +263,7 @@ class cma_approach(object): ...@@ -263,6 +263,7 @@ class cma_approach(object):
self.i += 1 self.i += 1
self.ending_iter = self.i self.ending_iter = self.i
return temp_out
def report(self): def report(self):
##print(self.i, self.es.sigma) ##print(self.i, self.es.sigma)
......
...@@ -67,7 +67,7 @@ def trial(prop): ...@@ -67,7 +67,7 @@ def trial(prop):
success, out = instance.report() success, out = instance.report()
trials += 1 trials += 1
process_out.append(out) process_out.append(out)
return out return process_out
topology = sys.argv[1] topology = sys.argv[1]
k = int(sys.argv[2]) k = int(sys.argv[2])
...@@ -83,8 +83,8 @@ if __name__ == "__main__": ...@@ -83,8 +83,8 @@ if __name__ == "__main__":
MAX_TRIAL = sys.argv[1] MAX_TRIAL = sys.argv[1]
approaches = [] approaches = []
for idx, n in enumerate(nets[4:5]): for idx, n in enumerate(nets):
for part in range(3, max_partitions[4:5][idx] + 1): for part in range(3, max_partitions[idx] + 1):
for seed in seedings: for seed in seedings:
for pop in pop_size: for pop in pop_size:
for tar in targets: for tar in targets:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment