diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/solution.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/solution.py b/scripts/solution.py index 3fddb6b..b3bec30 100644 --- a/scripts/solution.py +++ b/scripts/solution.py @@ -78,6 +78,15 @@ def apply(): solut = f.readline().split() solut.remove('0') # Remove 0 at the end + # Write solution to output_confs file + with open(sf(conf.output_confs), 'a') as f: + iteration = 0 + with open(sf(conf.iteration_file)) as f: + iteration = int(f.readline) + f.write(str(iteration) + ':') + for txt in solut: + f.write(txt + ' ') + f.write('\n') # Write negotation solution to solver_file |