energy-py-linear
energy-py-linear copied to clipboard
Use Custom Interval Data with Custom Constraints
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,
)