Skip to main content

model.Write "Unknown file type" with json

Answered

Comments

4 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?.
  • Eli Towle
    • Gurobi Staff

    Hi Kati,

    Gurobi 9.0.0 was the first version to support writing .attr and .json files. Could you upgrade to the latest version of Gurobi (9.0.2) and try again?

    Thanks,

    Eli

    0
  • Robert Hildebrand
    • Gurobi-versary
    • Conversationalist
    • First Question

    I updated to Gurobi 9.5.2, but I am getting the same error with writing the log file:

    I can run 

    m.write("myfile.sol")
    m.write("myfile.lp")
    m.write("myfile.log")

    But then I get the error

    GurobiError: Unknown file type for file 'myfile.log'
    0
  • Robert Hildebrand
    • Gurobi-versary
    • Conversationalist
    • First Question

    I see.  I can write it by using 

    m.Params.logfile = "myfile.log"

    0

Post is closed for comments.