Skip to content

Links ramp_start_up_limit not behaving as expected #592

@pmcwhannel

Description

@pmcwhannel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    high priorityIssue needs to be addressed timely

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions