-
Notifications
You must be signed in to change notification settings - Fork 624
Links ramp_start_up_limit not behaving as expected #592
Copy link
Copy link
Labels
high priorityIssue needs to be addressed timelyIssue needs to be addressed timely
Description
Checklist
- I am using the current version of PyPSA with the recent pull request add unit commitment for links #582.
Describe the Bug
Seems the ramp_limit_start_up for link components is not working as intended. I have tried rerunning the the contents of test_link_unit_commitment(api) with the addition of the attribute ramp_limit_start_up=0.01 and the output corresponding to OCGT does not change. Code is below to reproduce.
Thanks for any help in advance.
Code
n = pypsa.Network()
snapshots = range(4)
n.set_snapshots(snapshots)
n.madd("Bus", ["gas", "electricity"])
n.add("Generator", "gas", bus="gas", marginal_cost=10, p_nom=20000)
n.add(
"Link",
"OCGT",
bus0="gas",
bus1="electricity",
committable=True,
p_min_pu=0.1,
efficiency=0.5,
up_time_before=0,
ramp_limit_start_up=0.01, # CHANGE IS HERE
min_up_time=3,
start_up_cost=3333,
p_nom=12000,
)
n.add(
"Generator",
"wind",
bus="electricity",
p_nom=800,
)
n.add("Load", "load", bus="electricity", p_set=[4000, 6000, 800, 5000])
n.optimize()
Error Message
N/A.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
high priorityIssue needs to be addressed timelyIssue needs to be addressed timely