cashocs.io.managers.IOManager#

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

Bases: ABC

Abstract base class for input / output management.

Initializes self.

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

  • result_dir (str) – Path to the directory, where the results are saved.

Methods Summary

output()

The output operation, which is performed after every iteration.

output_summary()

The output operation, which is performed after convergence.

post_process()

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

Methods Documentation

abstractmethod output() None[source]#

The output operation, which is performed after every iteration.

Parameters:

solver – The optimization algorithm.

Return type:

None

abstractmethod output_summary() None[source]#

The output operation, which is performed after convergence.

Parameters:

solver – The optimization algorithm.

Return type:

None

abstractmethod post_process() None[source]#

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

Parameters:

solver – The optimization algorithm.

Return type:

None