Skip to content

Use Custom Interval Data with Custom Constraints #77

@ADGEfficiency

Description

@ADGEfficiency

Currently the below doesn't work:


Custom Interval Data in Custom Constraints

Custom interval data can be used in a custom constraints:

import energypylinear as epl

asset = epl.Battery(
    electricity_prices=[100, 50, 200],
    minimum_soc=[0.1, 0.2, 0.3],
    constraints=[
        {
            "lhs": {"asset_type": "battery", "variable": "electric_final_charge_mwh"},
            "rhs": {"interval_data": "minimum_soc", "variable": "minimum_soc"},
            "sense": "ge"
        },
    ]
)
simulation = asset.optimize(
    objective="price",
    verbose=3,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions