Skip to main content

Python read from MPS not working

Answered

Comments

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

    You are trying to read the model file using the Model.read() method, which is used for reading data (like a MIP start or LP basis file) into an existing model. Instead, use gurobipy's read() function:

    import gurobipy as gp

    model = gp.read("/path/to/coins.mps")
    0

Post is closed for comments.