Skip to content
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

Error: CBC IP solver 2nd status = 7 #38

Open
svigerske opened this issue Feb 26, 2019 · 3 comments
Open

Error: CBC IP solver 2nd status = 7 #38

svigerske opened this issue Feb 26, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@svigerske
Copy link
Member

Issue created by migration from Trac.

Original creator: kmartin

Original creation time: 2010-08-09 01:38:33

I am experimenting with Dip and solving a simple plant location problem. In my approach, there is a block (relaxed constraint set) for each plant. There is a relaxed constraint set for each i (plant) and the relaxed constraints for block i are:

x_{ij} \le y_{i} for all j

In this case the y_{i} is a binary variable so the sub-problem is bounded. However I get the error

Error: CBC IP solver 2nd status = 7
COIN Exception [ CBC solver 2nd status ] at ../../../Dip/src/DecompModel.cpp:L330 in DecompAlgoModel::solveOsiAsIp

If I add upper bounds of 1 on the x_{ij} variables it works and runs to completion with the correct optimal solution. However, it seems like I should not have to do this since the constraints x_{ij} \le y_{i} with y_{i} having an upper bound imply this.

Thanks

@svigerske svigerske added bug Something isn't working minor labels Feb 26, 2019
@svigerske
Copy link
Member Author

Comment by @mgalati13 created at 2010-08-09 11:36:52

Please send me (or post) your code and Makefile.

@svigerske
Copy link
Member Author

Comment by @mgalati13 created at 2010-08-09 11:36:52

Set assignee to @mgalati13.

@svigerske
Copy link
Member Author

Comment by @mgalati13 created at 2010-09-04 03:30:54

Kipp - please tell me how to repeat this issue. Are the constraints x <= y and y in {0,1} in the subproblem that is being declared unbounded? If the constraints x<=y are just in the master and not in the subproblems, then your subproblem might still be unbounded without the explicit bounds on x. You can use LogDumpModel=2 to see the subproblems.

@tkralphs tkralphs removed the minor label Jul 27, 2019
@tkralphs tkralphs self-assigned this Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants