energy-py-linear icon indicating copy to clipboard operation
energy-py-linear copied to clipboard

Use Custom Interval Data with Custom Constraints

Open ADGEfficiency opened this issue 1 year ago • 0 comments

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,
)

ADGEfficiency avatar Sep 08 '24 06:09 ADGEfficiency