-
Notifications
You must be signed in to change notification settings - Fork 8
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
UndefVarError: SOI not defined #23
Comments
Which version of |
Hi I Have Pkg.status("StructDualDynProg")
|
You need to use at lease version 0.2 to have the |
Thanks, today update and now works, but as I do to know the status, objective value, solution x? |
You need to do sol = SOI.optimize!(...)
SOI.last_result(sol).lowerbound
SOI.last_result(sol).upperbound
... You can see the other fields of the result here. |
StructDualDynProg.jl/src/SDDP/algorithm.jl Lines 61 to 63 in 349c9bc
As explained here: StructDualDynProg.jl/src/SDDP/algorithm.jl Lines 65 to 70 in 349c9bc
To get the path for the master node you need to do SOI.last_result(sol).paths.paths[1][1][2][1] Then you will have this structure StructDualDynProg.jl/src/SDDP/path.jl Lines 36 to 53 in 349c9bc
and the solution is in the pool field.I agree that we should add a more user friendly way to access it |
Hello, I wanted to thank you, I was able to better understand the data structure with typeof and fieldnames. But I have a question, how do I use model2lattice |
It doesn't exist anymore. I assume you read it from the README, I just fixed it: |
Hello, I have been trying to run the example model but I have this error when running
const SOI = StructDualDynProg.SOI
what I need to do
The text was updated successfully, but these errors were encountered: