Conversation
… no extendable links are found and return
|
Yes, this is what i have been using and it works. However, I noticed a different problem now: When i fix the capacities after the first run, and rerun the model, it may occur that the constraint, which remains in the model after the first run, causes an infeasibility. This happened because of minor constraint violations that occured during the first solve, e.g., I got This is infeasible, because: 150 * 8892.54423403 = 1333881.6351045 > 1333881.6351 Not sure how to best solve it, for a quick fix i just allowed the store to be extendable, because this constraint anyways forces store and link to be proportional. Not sure why it occured in the first place, since it should only affect extendable link and i thought i had all of them disabled 🤔 Anyways, while i am figuring this out, this PR can be merged |
Thanks for the review! Infeasibilities after fixing some decisions are quite common. Did you try enabling cross-over or tightening the infeasibility tolerance (and loosening it for the second run)? |
… energy-to-power ratio constraints (#1769) * fix: replace ValueError with logger warnings for TES constraints when no extendable links are found and return * doc: update release notes --------- Co-authored-by: Micha <[email protected]>
Changes proposed in this Pull Request
@lindnemi raised that, if all TES are non-extendable, the energy-to-power ratio constraints fail with an error message. This PR replaces the error message with a warning and a non-enforcing of the energy-to-power ratio and charger/discharger ratio constraints.
Tested by @lindnemi
Checklist
envs/environment.yaml.config/config.default.yaml.doc/configtables/*.csv.doc/data_sources.rst.doc/release_notes.rstis added.