Efficient way of finding the rank of the constraint matrix
I'm using Gurobi via the python module gurobipy. Suppose I've built a model by adding constraints one by one. After that, I would like to determine whether my constraint matrix is injective, or, equivalently, whether the rank of the constraint matrix equals the number of variables. I probably could export the constraint matrix to a numpy matrix and use numpy functionality, however, I wonder if there is a way to do this with Gurobi directly, which is maybe more efficient than exporting the matrix to numpy.
Thanks a lot in advance for your ideas and hints!
1
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
Post is closed for comments.
Comments
1 comment