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

Check for Feasibility of a Model #82

Open
ccoffrin opened this issue Feb 8, 2017 · 6 comments
Open

Check for Feasibility of a Model #82

ccoffrin opened this issue Feb 8, 2017 · 6 comments

Comments

@ccoffrin
Copy link
Member

ccoffrin commented Feb 8, 2017

Make an easy way to test if a solution is feasible for a given model.

@jac0320
Copy link

jac0320 commented Mar 30, 2017

How about:
Reconstruct model -> Fix vars by go through varDict with solution value -> objective = min 0.0 -> solve -> return status
?

@ccoffrin
Copy link
Member Author

Given the current state of JuMP this might be the best solution.

In an ideal world, checking feasibility should not require sending the problem to a solver. If you know the constraints and have a value for every variable, then you should be able to easily evaluate the constraints in Julia to test for feasibility up to some numerical tolerance.

@mlubin, @chriscoey suggestions on this? It seems like you do similar checks in Pajarito.

@mlubin
Copy link

mlubin commented Mar 30, 2017

Well, you can extract the constraint data and check feasibility. The easiest way is likely to make a dummy solver that does this through MathProgBase.

@ccoffrin
Copy link
Member Author

Sounds like a good solution to me.

@ccoffrin
Copy link
Member Author

ccoffrin commented Apr 2, 2018

@mlubin is this an expected feature in the next version of JuMP/MOI?

@mlubin
Copy link

mlubin commented Apr 2, 2018

We will have the infrastructure to implement this much more easily in JuMP/MOI, but this isn't a blocker or high priority for the JuMP 0.19 release.

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

No branches or pull requests

3 participants