-
Notifications
You must be signed in to change notification settings - Fork 252
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
The issue to writing the multiple solutions #906
Comments
Hey @abb-omidi! I think the issue is with the In regards to column generation, I think using something like count will not be very helpful. You only want to get the negative reduced cost columns, and count will try to find every solution. Sure you can add a constraint to exclude the non-negative reduced cost ones, but even still, usually just keeping the ones found by SCIP when optimizing is enough. You want to get the updated duals for the next iteration, spending extra time finding suboptimal solutions does not seem the best approach. |
Dear @Joao-Dionisio, Thanks for your comments. Also, the new online library is very useful. I tried to write an event handler to see what happened for
Regarding the column generation, in the first step, I have tried to generate the polyhedron from scratch to see the behavior of the master problem objective bounds Vs the objective of the compact formulation when the columns are added entirely at the beginning. In the second step, I would go with what you proposed. (That I will get back to you soon) All the best |
This is what @Opt-Mucca (who was also the one who made the new documentation, very useful indeed!) had to say about it:
I agree it would be nice if -- As for your error in the callback, I think it might make sense, but it's difficult to be sure without the full code. From what I could understand of |
It would be somewhat strange if An MRE to reproduce the error and the issue would be:
The result should be:
I was wondering if, you could take a look at this and see if it can be extended to write the rest of the solution. Regards |
Just as a follow-up question: would you say please, how can we relax an integer problem without changing the variables type? Also. in the reference you provided for P.S: @Joao-Dionisio, I could resolve some of my issues regarding relaxation and duals. Pls, let me check something, and I will get back to you asap. All the best |
Dear support team, Is it a necessery thing to define a pricer to capture the variables attributes to calculate the appropriate added columns or we can still use a loop to iterate over the extreme points/rays and update pricing problem and add column inside that? Best |
there is the relax() method.
There is not, you can take a look at the documentation of the functions, which should explain them well enough.
There is nothing stopping you from using SCIP as an LP solver and do the column-generation process yourself, it's just extra work. |
We will work on adding a function for getting the counted solutions. The issue is that they are stored in the constraint handler, not SCIPs traditional solution storage. We just need to write an appropriate function. |
Dear @Opt-Mucca, Dear @Joao-Dionisio, I am currently working on the
Now, my questions are:
All the best |
Hey @abb-omidi . 1 - yes, your general understanding is correct. |
Dear @Joao-Dionisio, Would you confirm that:
All the best |
Dear @Joao-Dionisio, I think there is a strange behavior in the running process of the
the solver shows the following output while the compact model is running without any issues.
I tried to write the
Would you say please, it is a bug or I am missing something? Best regards |
That seems to be a bug, Abbas, thank you. Please don't open any more issues about co@work in this repo, do so in the co@work repo, please. I'll look later into what you talked about. |
Dear @Joao-Dionisio, Many thanks for your answers, specifically for the 4th bullet. Best regards |
Oh yeah, Abbas, you're right! I'm closing the issue now, since the original question and the subsequent ones were answered. EDIT: oh nevermind, the original problem was about getting counted solutions, sorry. |
Dear support team,
I am working on the column generation procedure to solve a scheduling problem. For that, as the sub-problem is a knapsack form, I would like to count all of the extreme points from the pricing and add those entirely to the master problem. I saw the related questions, but I am unsure whether the issue of taking the multiple optimal solutions is being fixed. What I am trying is:
The result is an empty list!!!
By solving the problem with SCIP, I can get the results as following:
However, I am trying to use the method
mdl.writeSol()
, but I am not aware of how to define the required argumentsolution
to test and see what's really happened. I was wondering if, you could take a look and hint to me about that.All the best
Abbas
The text was updated successfully, but these errors were encountered: