Skip to main content

model fingerprint is different in the log and when queried

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    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?.
  • Jaromił Najman
    • Gurobi Staff

    Hi Juan,

    In Python, the fingerprint attribute is reported as a signed int. In order to match the fingerprint reported in the log, you have to convert it to an unsigned hex value via

    print(hex(model.fingerprint & 0xFFFFFFFF))

    This is a bit inconvenient but seems to be common practice in Python when converting integer with arbitrary length into their hexadecimal form.

    Best regards,
    Jaromił

    1
  • Juan Calle
    • Gurobi-versary
    • Curious
    • First Comment

    Thanks so much, Jaromil

     

    0

Post is closed for comments.