First of all thank you to all oemof developers for this powerful, yet intuitive Framework.
Now to the issue, I am trying to make a combined investment and dispatch model. One of the elements of the energy system is a CHP with the investment module. I tried this variant, basically splitting the emissions, costs and investment on both outputs (it doesn’t make sense but it’s the best I can come up with):
BHKW = solph.ExtractionTurbineCHP(label='bhkw',
inputs={Gas: solph.Flow()},
outputs={Electricity: solph.Flow(emission_factor=1,
variable_costs=1,
investment=solph.Investment(ep_costs=1, maximum = 100000)),
Heat: solph.Flow(emission_factor=1,
variable_costs=1,
investment=solph.Investment(ep_costs=1, maximum = 100000))},
conversion_factors={Electricity: 0.4, Heat: 0.4},
conversion_factor_full_condensation={Electricity: 0.5})
And also another variant where I put the emission factor, variable costs and investment inside the Input bracket instead of splitting them on the outputs. Even when drastically reducing the variable costs and emission factors to make it a more viable option, both variants result in an investment of 0 with the code not showing any errors.
My question is therefore: what is the right way to incorporate the investment module in this component?