otoole.results package¶
Submodules¶
otoole.results.convert module¶
Converts an OSeMOSYS solution file from CPLEX, CBC or GLPK into CBC or CSV format
-
class
otoole.results.convert.
ConvertLine
(data: List[T], start_year: int, end_year: int, output_format='cbc')[source]¶ Bases:
object
Abstract class which defines the interface to the family of convertors
Inherit this class and implement the
_do_it()
method to produce the data to be written out into a new formatExample
>>> cplex_line = "AnnualCost REGION CDBACKSTOP 1.0 0.0 137958.8400384134" >>> convertor = RegionTechnology() >>> convertor.convert() VariableName(REGION,TECHCODE01,2015) 42.69 0\n VariableName(REGION,TECHCODE01,2017) 137958.84 0\n
-
class
otoole.results.convert.
RegionTechnology
(data: List[T], start_year: int, end_year: int, output_format='cbc')[source]¶
-
class
otoole.results.convert.
RegionTimeSliceTechnologyMode
(data: List[T], start_year: int, end_year: int, output_format='cbc')[source]¶
-
otoole.results.convert.
convert_cplex_file
(cplex_filename: str, output_filename: str, start_year=2015, end_year=2070, output_format='cbc')[source]¶ Converts a CPLEX solution file into that of the CBC solution file
Parameters: