Skip to content

Unable to add extra constrains #16

@martynvandijke

Description

@martynvandijke

Hi,

I want to add more constrains to the linear optimal Power Flow
network.lopf(snapshots=network.snapshots,extra_functionality=constrains,keep_files=True)
My constraints function looks like

def constrains():
         network = Constraint( (network.generators.p_min_pu * network.generators.p_nom ) <= network.generators.p_nom )

The constrained is not reflected in the optimisation process does anyone know what i am doing wrong ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions