# Querying attributes of LP relaxation at MIP-optimality in Gurobi

Is there a way to configure Gurobi to allow the LP relaxation associated with the optimal solution leaf of a MIP branch-and-bound tree to be queried for shadow prices & other general LP properties--understanding that there may be serious shortcomings about some of the inferences that can be made given the cutting planes that are put in.

If this is possible, how would one go about storing this LP relaxation or querying the properties of a given constraint c?

Based on the documentation, this level of information retrieval from a specific branch-and-bound node is currently not available. If this was possible, we'd have to use a callback function (python documentation, python examples) to get the information from the relevant MIP branch-and-bound tree. We'd need where == GRB.Callback.MIPNODE since we want information from a specific node.
Looking at the what callback codes and archived Google Groups discussions for MIPNODE, there is no code to get the LP relaxation constraints and their properties. The closest thing would be MIPNODE_REL (or Model.cbGetNodeRel() for python), which provides the values of the variables for a node relaxation solution.