Skip to content

define_constraint with mask performs poorly with multi invest #433

@lisazeyen

Description

@lisazeyen

Reformulate constraints without the mask

Currently with multi-period investment the constraints

    for c, attr in lookup.query("not nominal and not handle_separately").index:
        define_dispatch_for_non_extendable_variables(n, snapshots, c, attr)
        define_dispatch_for_extendable_and_committable_variables(n, snapshots, c, attr)
        align_with_static_component(n, c, attr)
        define_dispatch_for_extendable_constraints(n, snapshots, c, attr)

perform poorly because of the mask in define constraint. I suggest to remove the mask and set the non-active assets to zero when defininng min_pu, max_pu in get_bounds_pue.g. in this way here

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions