macroenergy / Dolphyn.jl

DOLPHYN: Decision Optimization for Low Carbon Power and Hydrogen Nexus
https://macroenergy.github.io/Dolphyn.jl/
GNU General Public License v2.0
37 stars 20 forks source link

[BUG] Constraints on "NoCommit" retired G2P capacity upper bound defined over Commit set #242

Closed federicoparolin closed 2 months ago

federicoparolin commented 5 months ago

Is there an existing issue for this?

Current Behavior

Issue in h2_g2p_all.jl, line 63: The constraint cH2G2PMaxRetNoCommit is defined over the set of elements _H2_GEN_RETCAP that are not in _H2_GEN_NOCOMMIT. This coincides with the intersection of the sets _H2_GEN_RETCAP and _H2_GENCOMMIT, over which the cH2G2PMaxRetCommit constraint is defined.

Expected Behavior

The constraint cH2G2PMaxRetNoCommit should be defined over intersect(H2_GEN_RET_CAP, H2_GEN_NO_COMMIT)

Steps To Reproduce

No response

Environment

- OS:
- Julia version:
- Solver:
- Solver version:

Manifest.toml file

No response

Anything else?

No response