- A results file from CPLEX includes zero values which increases the file size
- Results from CBC often includes very small negative/positive values which should be removed
Write a post-process script which takes a result file and produces a correctly formatted results file with no zero-values or very small values.
This should run on the command line or from a Python script like so:
pp_temba --cplex cplex_results.txt -o cleaned_results.txt
pp_temba --cbc cbc_results.txt -o cleaned_results.txt
from temba.post_process import cplex_results, cbc_results
cplex_results('./cplex_results.txt', './cleaned_results.txt')
cbc_results('./cbc_results.txt', './cleaned_results.txt')