cashocs.io.managers.ConsoleManager#

class cashocs.io.managers.ConsoleManager(db: database.Database, result_dir: str, verbose: bool = False)[source]#

Bases: IOManager

Management of the console output.

Initializes self.

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

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

  • verbose (bool) – Boolean which indicates whether the logging setup (False) or the old setup with print (True) should be used. Default is False.

Methods Summary

output()

Prints the output string to the console.

output_summary()

Prints the summary in the console.

post_process()

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

Methods Documentation

output() None[source]#

Prints the output string to the console.

Return type:

None

output_summary() None[source]#

Prints the summary in the console.

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