Solver code updated to generate an output file comparing two approaches