-
Notifications
You must be signed in to change notification settings - Fork 26
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 stop the optimization of a stochastic program #34
Comments
Your |
Thank you very much for your reply, now it works. Do you know if is it possible to use the macro @expression for the deterministic equivalent? Because if I run the same program with the LShaped optimizer or with the ProgressiveHedging optimizer it works, but if I try to convert the model into the Determinist Equivalent problem it shows me the following error:
Again, thank you very much for your replies and your time! |
No, that should be a fixable oversight. Could you give a MWE of the |
Nevermind, I found it. It should work on master now. |
Thank you very much! |
I'm sorry to re-open this issue, but I found out a new error message which I think it's a consequence of the previous change in the code.
The problem is that I'm sure that I've never declared P_tot_P_overestimate before. |
|
Yes it is an @expression declared in the @stage2. |
Could you ctrl-v the full |
Of course:
|
I am not sure why that does not work. Did a small test with an indexed |
Hi Martin, I'm sorry for the delay but I was trying to make a minimal example of the above error. I've a zip file ready to sent, where can I find your e-mail? |
Thank you. For example, this zip file reproduce the error that I was trying to describe. |
Thank you. I had missed an edge case with |
Thank you, I am very happy if I can give an help to the improvement of the package, even if minimally! |
Yes, I should of course cover arrays of constant expressions as well. Should be fixed now! |
Perfect, everything works now! |
Hi,
I'm having some troubles trying to interrupt the optimization of a model that I have built by using StochasticPrograms.
After a lot of test I decided to use progressive-hedging algorithms to solve the model, but it is still difficult to find the optimal solution. Thus, I decided to put an optimality gap to stop the execution, but it seem that it doesn't work. This is what I put in the code:
These are some lines of the optimization after 30 minutes from the start:
Moreover, sometimes the status of the solution appears and it seems that the Primal Gap is very good:
Why execution is still running? Is there something I can do to interrupt it? If I use Ctrl+C it stops but there aren't solutions saved, so I can't have any information. I also tried to set a time limit, but also in this case I'm not able to find which is the optimal solution found.
Thank you very much for your time.
The text was updated successfully, but these errors were encountered: