Skip to content
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

Links ramp_start_up_limit not behaving as expected #592

Open
1 task
pmcwhannel opened this issue Mar 31, 2023 · 1 comment
Open
1 task

Links ramp_start_up_limit not behaving as expected #592

pmcwhannel opened this issue Mar 31, 2023 · 1 comment
Labels

Comments

@pmcwhannel
Copy link

pmcwhannel commented Mar 31, 2023

Checklist

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.

@pmcwhannel pmcwhannel added the bug label Mar 31, 2023
@fneum
Copy link
Member

fneum commented Jul 23, 2023

Confirmed bug. (Even when setting down_time_before=1 as well).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants