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

[Bug]: wrong contraint expression in reserves_contingency!(EP::Model, inputs::Dict, setup::Dict) doc #689

Closed
chamanbaz opened this issue Apr 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@chamanbaz
Copy link

Bug description

Hi
There is a typo in the reserves_contingency help file. There is nothing wrong with the actual constraint, but there is a typo in the latex expression explaining the constraint.

The following expression is wrong and does not capture the actual constraint in the code:
\begin{aligned}
&Contingency \geq \Omega^{size}{y,z} \times \alpha^{Contingency,Aux}{y,z} & \forall y \in \mathcal{UC}, z \in \mathcal{Z}\
&\alpha^{Contingency,Aux}{y,z} \leq \Delta^{\text{total}}{y,z} & \forall y \in \mathcal{UC}, z \in \mathcal{Z}\
&\alpha^{Contingency,Aux}{y,z} \geq M_y \times \Delta^{\text{total}}{y,z} & \forall y \in \mathcal{UC}, z \in \mathcal{Z}\
\end{aligned}

The correct expression is:
\begin{aligned}
&Contingency \geq \Omega^{size}{y,z} \times \alpha^{Contingency,Aux}{y,z} & \forall y \in \mathcal{UC}, z \in \mathcal{Z}\
&\alpha^{Contingency,Aux}{y,z} \leq \Delta^{\text{total}}{y,z} & \forall y \in \mathcal{UC}, z \in \mathcal{Z}\
& \Delta^{\text{total}}{y,z} \leq M_y \times \alpha^{Contingency,Aux}{y,z} & \forall y \in \mathcal{UC}, z \in \mathcal{Z}\
\end{aligned}

The same problem exists in Dynamic commitment-based contingency Option 3.

Environment and Version

Windows OS, Julia 1.10.2

Relevant error messages

No response

Additional context

No response

@chamanbaz chamanbaz added the bug Something isn't working label Apr 24, 2024
@lbonaldo
Copy link
Collaborator

Thank you, @mrchamanbaz, for opening this issue. Following your suggestion, we've updated the docstring, and this change will be incorporated into the upcoming release.

@lbonaldo lbonaldo closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants