Skip to main content

Retrieve removed variables after presolve



1 comment

  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Is there a way to retrieve the removed variables (especially the binary variables) after presolve for MIP?

    No, it is currently not possible to get particular variables which have been removed in presolve. You could generate the presolved model via the presolve method, compare it to the original model, and try to find which variables might have been deleted or aggregated in the presolve step. Please note that some presolve reduction are non-trivial and there is no necessarily a simple mapping from presolved variables to original variables. You can find more information in the Knowledge Base article How does presolve work?

    Best regards, 


Please sign in to leave a comment.