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

Querying dual information of MIP that has previously been solved #960

Closed
odow opened this issue Feb 8, 2017 · 3 comments
Closed

Querying dual information of MIP that has previously been solved #960

odow opened this issue Feb 8, 2017 · 3 comments

Comments

@odow
Copy link
Member

odow commented Feb 8, 2017

In the following scenario, it is possible for the dual information to be out of date.

m=Model()
@variable(m, x, Bin)
@objective(m, Max, x)

solve(m)
getdual(x) # errors

solve(m, relaxation=true)
getdual(x) # 1.0

solve(m)
getdual(x) # 1.0

Is this user-beware or should the dual information be set to NaN in the else branch of here.

@mlubin
Copy link
Member

mlubin commented Feb 8, 2017

The dual information should be cleared. More evidence for reworking MPB to better communicate which solution information is available and what its status is (#938).

@mlubin
Copy link
Member

mlubin commented Feb 20, 2017

@joehuchette, closed by #963?

@joehuchette
Copy link
Contributor

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants