Closed jmorrisnrel closed 1 week ago
Thanks @jmorrisnrel . I can confirm that I am able to reproduce this locally with the following applied as an override to the urban scale example model:
techs:
chp:
cost_flow_out:
data: [0.004, 0.001]
index: [[monetary, electricity], [monetary, heat]]
dims: [costs, carriers]
cost_flow_export:
data: 1
index: [[monetary, electricity]]
dims: [costs, carriers]
I have a fix I'll open a pull request for today.
What happened?
I've been testing some of the multi-carrier functionality with conversion and supply and have run into an issue trying to set an export cost on one carrier while putting a production cost on the other. Setting multiple variable cost parameters (
cost_flow_in
,cost_flow_out
orcost_export
) for different carriers on a single tech/node seems to trigger multiple equations being added forcost_var
on the same index. This occurs on both supply and conversion (and I imagine on other archetypes as well).Setting multiple instances of a single cost parameter causes the issue as well:
The issue occurs if you specify the constraints with a CSV as well.
cost_flow_cap
does not seem to be affected and builds correctly, although I haven't tested all combinations of carriers and cost parameters so it may not just be thecost_var
ones.Which operating systems have you used?
Version
v0.7.0-dev3
Relevant log output