Skip to main content

How to retrieve model fingerprint without running an optimization?

Answered

Comments

4 comments

  • Official comment
    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.
  • Riley Clement
    • Gurobi Staff

    Hi Barrett,

    You can use the Fingerprint attribute on the model, which returns an integer.  If you want to replicate the value that you see in our logfiles you will need to convert it to hexadecimal.  You can do this with the following code snippet:

    def fingerprint(model):
        return hex((model.Fingerprint + (1 << 32)) % (1 << 32))

    Also, note that as a commercial customer C3 AI is welcome to open requests through our Gurobi Help Center, which we generally answer much more promptly.

    Cheers,
    Riley

     

    0
  • Barrett Nelson
    • Gurobi-versary
    • First Comment
    • First Question

    Thanks for the quick response Riley. 


    I tried this and for some reason I am getting a different model fingerprint with this method compared with the fingerprint that is returned after I run an optimization call. 
    Do you know why this would be happening?

    0
  • Riley Clement
    • Gurobi Staff

    Hi Barrett,

    I'm turning this into a ticket, and we can continue the discussion there.

    Cheers,
    Riley

    1

Post is closed for comments.