-
Notifications
You must be signed in to change notification settings - Fork 61
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
Performance enhance (Direct Model) #768
Comments
Use the undocumented Line 941 in 73dd799
model = SDDP.PolicyGraph(; direct_mode = true, optimizer = Gurobi.Optimizer) do sp, node
# ...
end
Sometimes faster, sometimes slower. Always lower memory usage. Sometimes it will error. You're usually safe with Gurobi though. |
Note that Lines 939 to 941 in 73dd799
I realized the reason: Lines 295 to 306 in 73dd799
We can't attempt numerical recovery, and it is common enough that the problems I used direct-mode on just led to problems. So I think I'm going to close this as won't-fix. You can use it if you want, but I don't want to document it for less-experienced users 😄 |
I'm dealing with a very big model and trying to increase its performance. I saw some mentions of direct_model in the code. Can we use the JuMP direct model with SDDP? Even with binary and Interger variables? What are the implications of using it?
The text was updated successfully, but these errors were encountered: