Getting Number of Non-zero Entries in the Constraints After Presolve in Julia
回答済みHello Team,
I am a researcher working in economics and I have a question about obtaining specific model information under the Julia JuMP framework. Say that I have set up a generic linear program in Julia and the model has been optimized. I know that I can obtain the number of non-zero entries in the constraint before presolve using
-
正式なコメント
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 Henry,
I want to know if there is a way to obtain the number of non-zero entries in the constraint after presolve. I know the information can be retrieved from the log file, but I was wondering if there is a way to obtain the information programmatically without parsing the log file. This would really help with my research. Thanks!
There is currently no way to obtain the number of non-zeros after presolve has been performed. Currently, the only way to obtain this information is to parse the log output. This can be done via a MESSAGE callback.
Please note that the NumNZ attribute reports the number of all non-zeros in linear constraints and not the number of non-zeros in a specific constraint.
Best regards,
Jaromił0 -
Thanks for the answer!
0
投稿コメントは受け付けていません。
コメント
3件のコメント