メインコンテンツへスキップ

Getting Number of Non-zero Entries in the Constraints After Presolve in Julia

回答済み

コメント

3件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    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.
  • Jaromił Najman
    • Gurobi Staff

    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
  • Henry Mao
    • Gurobi-versary
    • First Question
    • First Comment

    Thanks for the answer!

    0

投稿コメントは受け付けていません。