edisgo.opf.results.opf_result_class.OPFResults ============================================== .. py:class:: edisgo.opf.results.opf_result_class.OPFResults .. py:attribute:: status :value: None .. py:attribute:: solution_time :value: None .. py:attribute:: solver :value: None .. py:attribute:: lines_t .. py:attribute:: slack_generator_t .. py:attribute:: heat_storage_t .. py:attribute:: hv_requirement_slacks_t .. py:attribute:: grid_slacks_t .. py:attribute:: overlying_grid .. py:attribute:: battery_storage_t .. py:method:: to_csv(directory, attributes=None) Exports OPF results data to csv files. The following attributes can be exported: * 'lines_t' : The results of the three variables in attribute :py:attr:`~lines_t` are saved to `lines_t_p.csv`, `lines_t_p.csv`, and `lines_t_ccm.csv`. * 'slack_generator_t' : Attribute :py:attr:`~slack_generator_t` is saved to `slack_generator_t.csv`. * 'heat_storage_t' : The results of the two variables in attribute :py:attr:`~heat_storage_t` are saved to `heat_storage_t_p.csv` and `heat_storage_t_e.csv`. * 'hv_requirement_slacks_t' : Attribute :py:attr:`~hv_requirement_slacks_t` is saved to `hv_requirement_slacks_t.csv`. * 'grid_slacks_t' : The results of the five variables in attribute :py:attr:`~grid_slacks_t` are saved to `dispatchable_gen_crt.csv`, `non_dispatchable_gen_crt.csv`, `load_shedding.csv`, `cp_load_shedding.csv` and `hp_load_shedding.csv`. * 'overlying_grid' : Attribute :py:attr:`~overlying_grid` is saved to `overlying_grid.csv`. :param directory: Path to save OPF results data to. :type directory: str :param attributes: List of attributes to export. See above for attributes that can be exported. If None, all specified attributes are exported. Default: None. :type attributes: list(str) or None .. py:method:: from_csv(data_path, from_zip_archive=False) Restores OPF results from csv files. :param data_path: Path to OPF results csv files. :type data_path: str :param from_zip_archive: Set True if data is archived in a zip archive. Default: False. :type from_zip_archive: bool, optional