Skip to main content

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

Answered

Comments

2 comments

  • Jaromił Najman
    Gurobi Staff 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
    First Question
    First Comment

    Thanks for the answer!

    0

Please sign in to leave a comment.