Any way to retrieve number of nonzeroes in an LP file?
AnsweredI am working with LP files. I can use the command model.runtime to return the optimization runtime once the optimization is complete, is there a similar command to return the number of nonzeros in an LP file? I can see the number of nonzeros when the LP file is read by gurobi, but I would like to be able to run a command to get this, as it makes it easier for me to collect and analyze, especially when there are large numbers of LP files to work with. Thanks.
0
-
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?. -
I think NumNZs is what you are looking for, see here: https://www.gurobi.com/documentation/8.1/refman/numnzs.html#attr:NumNZs
1
Post is closed for comments.
Comments
2 comments