-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiplication of a invest decison value and timeseries data doesn't work #25
Comments
Yea... that's a current limitation of the way we parse "strings in YAML" to what we internally call "expressions". There is a rework (and more related issues) in the internal GitLab (not linking here, but see merge request "# 23" there), but we currently do not have any proper solution for that here. I'll keep this open as it is - maybe I'm able to include this into the currently open redesign in #20 (since then we could keep a few breaking changes in one take). But in the meanwhile, I'll post a "solution" in the next comment. |
Workaround: Since you actually allow for "getting rid of heat" (via The following could be a reformulation that should work: grid_heat:
type: Node
carrier: heat
demand:
type: Profile
carrier: heat
node_from: grid_heat
value: demand_heat@hourly_data
solar_thermal:
type: Unit
outputs: {heat: grid_heat}
conversion: ~ -> 1 heat
capacity: solar_thermal_area_invest:value out:heat
availability_factor: solar_thermal_heat_out_per_m2@hourly_data
solar_thermal_area_invest:
type: Decision
lb : 0
ub: 20
cost: 10 Observe:
Does that work for now? |
This was fixed as part of #20, see this comment for details. |
@nyashags Please report back whether this left any special case non-working or whether everything's fixed now. |
Multiplying an invest decision value with a timeseries value returns an error because then the invest decision value or the timeseries is not recognized, but I think this would be a useful functionality to have.
For example, I have timeseries data with heat output per m2 for solar thermal and would like to multiply this with an invest decision for how many m2 of solar thermal should be built, and use this as the value for my solar thermal supply profile.
I can multiply either the decision variable or the timeseries data by a scalar like this:
However multiplying the decision value by the timeseries data as i would like to doesnt work:
Example code for all the components:
The text was updated successfully, but these errors were encountered: