Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Custom Interval Data with Custom Constraints #77

Open
ADGEfficiency opened this issue Sep 8, 2024 · 0 comments
Open

Use Custom Interval Data with Custom Constraints #77

ADGEfficiency opened this issue Sep 8, 2024 · 0 comments

Comments

@ADGEfficiency
Copy link
Owner

ADGEfficiency commented Sep 8, 2024

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,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant