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

How to retrieve model fingerprint without running an optimization?

回答済み

コメント

3件のコメント

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

    Hi Barrett,

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

    Cheers,
    Riley

    1

サインインしてコメントを残してください。