-
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
Cannot add solution when using addConsIndicator #717
Comments
Good afternoon, @skyu0221! Thank you for your organized issue! I think the problem here is a different one. Look at the beginning of the solving process: PySCIPOpt is saying that the provided solution is infeasible, so it disregards it. The same thing happens if you set control to 1. Sorry for not helping more, I am a bit busy, I will try looking into it more tomorrow. |
Hi @Joao-Dionisio , Thanks for replying! Yes, that is basically my question about using an indicator constraint. As you can see, the optimal solution should be If I'm not misunderstanding the concept, I assume if |
Hello @skyu0221, sorry for the delay. This is indeed a bit puzzling. It's not that SCIP cannot arrive at the optimal solution. At least on my end, he correctly arrives at the solution And the constraint seems to be activated correctly. But, as you say, SCIP claims that the optimal solution is infeasible, if added manually, even though it arrives at the exact same solution. Trying to add the solution |
Dear @Joao-Dionisio, As the question is interesting to me, let me add some points that may be useful.
The logical expression can be translated into the linear one as follows: By assuming the Also, if you write the problem in the
The first constraint is the same as what is mentioned in the SCIP host and is equal to: The second is equivalent to: It derives the following linear inequalities: Now, based on the latest two constraints, if Regards |
Thank you for the help, @abb-omidi! But I don't understand your conclusion. If |
Dear @Joao-Dionisio, I am actually not sure how the SCIP can deal with the slack variable internally. There are two things that may come:
I managed to ask some questions w.r.t. the slack variable and its rule in the constraints from the SCIP community. I will update this issue if I can get any feedback. Regards |
It might be my implementation error, but whenever I have indicator constraints, the constraints seem always needs to be satisfied regardless of the value of the binary variable. Minimum example:
The text was updated successfully, but these errors were encountered: