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

glp_simplex warning in remove_redundant_vertices #3226

Closed
schillic opened this issue Dec 26, 2022 · 1 comment
Closed

glp_simplex warning in remove_redundant_vertices #3226

schillic opened this issue Dec 26, 2022 · 1 comment
Assignees
Labels
external 📤 Related to external packages fix 🤕 Fix to a problem that is not too serious

Comments

@schillic
Copy link
Member

schillic commented Dec 26, 2022

The following simple example (non-LazySets code) triggers glp_simplex warnings when presolve is active in the solver.

julia> using Polyhedra
julia> import GLPK, JuMP
julia> P = vrep([
 [1.0, 1.0, 1.0],
 [-1.0, 1.0, 1.0],
 [1.0, -1.0, 1.0],
 [-1.0, -1.0, 1.0],
 [1.0, 1.0, -1.0],
 [-1.0, 1.0, -1.0],
 [1.0, -1.0, -1.0],
 [-1.0, -1.0, -1.0]
]);

# presolve off
julia> solver = JuMP.optimizer_with_attributes(GLPK.Optimizer, "presolve" => GLPK.GLP_OFF);
julia> removevredundancy(P, solver);  # no warnings

# presolve on
julia> solver = JuMP.optimizer_with_attributes(GLPK.Optimizer, "presolve" => GLPK.GLP_ON);
julia> removevredundancy(P, solver);  # prints warnings
glp_simplex: unable to recover undefined or non-optimal solution
glp_simplex: unable to recover undefined or non-optimal solution
glp_simplex: unable to recover undefined or non-optimal solution
glp_simplex: unable to recover undefined or non-optimal solution
glp_simplex: unable to recover undefined or non-optimal solution
glp_simplex: unable to recover undefined or non-optimal solution
glp_simplex: unable to recover undefined or non-optimal solution
glp_simplex: unable to recover undefined or non-optimal solution

(This warning is printed in the following test files: Polytope, Polyhedron, CartesianProduct, concrete_convex_hull, but maybe not all for the same reason.)

I asked in JuliaPolyhedra/Polyhedra.jl#315.

@schillic schillic added fix 🤕 Fix to a problem that is not too serious external 📤 Related to external packages labels Dec 26, 2022
@schillic schillic self-assigned this Jun 3, 2023
@schillic
Copy link
Member Author

schillic commented Jun 3, 2023

I finally understood that this is expected behavior. The GLPK presolver prints a warning whenever the LP is infeasible. The options to avoid the warning seem to be to either raise the verbosity level or to not use the presolver. I personally find this a questionable design decision because feasibility queries are very common (as in this example).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external 📤 Related to external packages fix 🤕 Fix to a problem that is not too serious
Projects
None yet
Development

No branches or pull requests

1 participant