cashocs.io.managers.FileManager#

class cashocs.io.managers.FileManager(db: database.Database, result_dir: str)[source]#

Bases: IOManager

Class for managing the human-readable output of cashocs.

Initializes self.

Parameters:
  • db (database.Database) – The database of the problem.

  • result_dir (str) – The directory, where the results are written to.

Methods Summary

output()

Saves the output string in a file.

output_summary()

Save the summary in a file.

post_process()

The output operation which is performed as part of the postprocessing.

Methods Documentation

output() None[source]#

Saves the output string in a file.

Return type:

None

output_summary() None[source]#

Save the summary in a file.

Return type:

None

post_process() None[source]#

The output operation which is performed as part of the postprocessing.

Parameters:

solver – The optimization algorithm.

Return type:

None