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

Incorporate the information N stages before in subproblems #530

Closed
Moon1193 opened this issue Oct 27, 2022 · 3 comments
Closed

Incorporate the information N stages before in subproblems #530

Moon1193 opened this issue Oct 27, 2022 · 3 comments

Comments

@Moon1193
Copy link

Hi Oscar,
We are modelling the optimization for a hydroelectric cascade system, one of the constraints is a dynamic equation which includes decision variable of current node, its parent node (1 stage before) and so on (N stages before)

We want to incorporate them in each subproblem. I know that we can add the decision variable as state variable to access the current node and parent node information but is there any way we can also incorporate the variables at N(N>1) stages before.

We would be grateful if you could give us some suggestions on how to solve this problem.

@odow
Copy link
Owner

odow commented Oct 27, 2022

If you need to access a variable from a previous stage, then it must become a state variable.

See https://odow.github.io/SDDP.jl/stable/guides/acess_previous_variables/#Access-a-decision-from-N-stages-ago

@Moon1193
Copy link
Author

Moon1193 commented Nov 1, 2022

Thank you for the information.

@odow
Copy link
Owner

odow commented Dec 14, 2022

Closing because this seems resolved. Please re-open if you have other questions.

@odow odow closed this as completed Dec 14, 2022
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

2 participants