deflex.DeflexScenario.create_model

DeflexScenario.create_model()

Create a solph model from an EnergySystem object.

This method is included in the compute() method and is only needed for advanced usage.

Returns:
Return type:oemof.solph.Model

Examples

>>> import deflex as dflx
>>> fn = dflx.fetch_test_files("de02_no-heat_csv")
>>> sc = dflx.create_scenario(fn, "csv")
>>> sc.table2es()
>>> type(sc.create_model())
<class 'oemof.solph.models.Model'>