How good is Gurobi for solving large linear systems of equations?
AnsweredI need to solve a somewhat large linear system of equations (hundreds of thousands variables) in C++ and instead of having to learn a new library was thinking of testing it in Gurobi.
Are there benchmarks for the following formulation?
min 0
s.t Ax = b
Also, if I choose to go through with this approach, and I fill A and b using the addConstr() methods, will Gurobi create a sparse matrix representation internally like the C interface, right?
-
Official comment
This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support. -
Hi Victor,
We do not have a benchmark specific to problems without an objective function but I would suggest you go ahead and give it a try, hopefully it will be fast.
Also, if I choose to go through with this approach, and I fill A and b using the addConstr() methods, will Gurobi create a sparse matrix representation internally like the C interface, right?
Yes, using GRBModel::addConstr() we will create the model for the C interface efficiently.
Cheers,
David0
Post is closed for comments.
Comments
2 comments