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

how to get a solution from state 2 #28

Open
Esnilg opened this issue Mar 19, 2020 · 1 comment
Open

how to get a solution from state 2 #28

Esnilg opened this issue Mar 19, 2020 · 1 comment

Comments

@Esnilg
Copy link

Esnilg commented Mar 19, 2020

Hi blegat

I am taking up your code, and manage to implement an example with 5 stages and 10 scenarios. I already know how to have the root node solution, but if I want to have the solution for the other stages I don't know how to do it. Is there some way to save the cuts in stages?

best regards

@blegat
Copy link
Member

blegat commented Mar 20, 2020

Continuing from #23 (comment),
The solution for scenario 1 <= i <= 10 at stage 1 <= t <= 5 is obtained with

SOI.last_result(sol).paths.paths[t][i][2][1]

The root corresponds to t = 1 (first stage) and i = 1 (there is only one scenario at the root anyway).

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