Clarification on user-defined constraint options #659
-
Hello! I'm working on a model (v0.6.10) where I'm trying to add a conversion technology that is tied to a storage technology, and would like to impose constraints on storage variables (such as charge, discharge, and energy level) for each timestep. Specifically, I want to set hourly limits on these variables throughout the simulation period. I noticed the example on user-defined custom constraints in the documentation, where the Could you provide a list or explanation of the different parameters (such as Thank you very much for your assistance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In principle any of defined parameters and any variables, which will make their way into the Pyomo-built model, are available (see https://calliope.readthedocs.io/en/v0.6.10/user/config_defaults.html#per-tech-constraints and https://calliope.readthedocs.io/en/v0.6.10/user/ref_formulation.html#module-calliope.backend.pyomo.variables). I would recommend however moving to v0.7 instead, which has vastly superior ways to customise constraints: https://calliope.readthedocs.io/en/latest/user_defined_math/ |
Beta Was this translation helpful? Give feedback.
In principle any of defined parameters and any variables, which will make their way into the Pyomo-built model, are available (see https://calliope.readthedocs.io/en/v0.6.10/user/config_defaults.html#per-tech-constraints and https://calliope.readthedocs.io/en/v0.6.10/user/ref_formulation.html#module-calliope.backend.pyomo.variables).
I would recommend however moving to v0.7 instead, which has vastly superior ways to customise constraints:
https://calliope.readthedocs.io/en/latest/user_defined_math/