cashocs.io.managers.ResultManager#

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

Bases: IOManager

Class for managing the output of the optimization history.

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()

Saves the optimization history to a dictionary.

output_summary()

The output operation, which is performed after convergence.

post_process()

Saves the history of the optimization to a .json file.

Methods Documentation

output() None[source]#

Saves the optimization history to a dictionary.

Return type:

None

output_summary() None[source]#

The output operation, which is performed after convergence.

Parameters:

solver – The optimization algorithm.

Return type:

None

post_process() None[source]#

Saves the history of the optimization to a .json file.

Return type:

None