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

Bug in treatment of ranged constraints in OsiCpxSolverInterface::getBasisStatus() #17

Closed
svigerske opened this issue Mar 2, 2019 · 3 comments
Labels
bug Something isn't working OsiCpx

Comments

@svigerske
Copy link
Member

Issue created by migration from Trac.

Original creator: fmargot

Original creation time: 2006-12-13 23:08:26

Assignee: @mjsaltzman

Version:

CC: fmargot@andrew.cmu.edu

Lines 3008 and 3022 of OsiCpxSolverInterface.cpp
in method getBasisStatus() should both be changed from

  if(sense[i] == 'E') {

to
if((sense[i] == 'E') || (sense[i] == 'R')) {

so that status for ranged constraints are correct.

@svigerske svigerske added bug Something isn't working major OsiCpx labels Mar 2, 2019
@svigerske
Copy link
Member Author

Attachment cpx_getBasisStatus.cpp by fmargot created at 2006-12-14 15:47:18

@svigerske
Copy link
Member Author

Comment by fmargot created at 2006-12-14 15:49:27

The above fix might work incorrectly with maximization problems. The attached file contains a correct version of the method.

@svigerske
Copy link
Member Author

Comment by ladanyi created at 2007-06-08 04:05:52

Resolution: fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OsiCpx
Projects
None yet
Development

No branches or pull requests

1 participant