Skip to main content

Unable to read MPS file

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff 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?.
  • Michael Winkler
    Gurobi Staff Gurobi Staff
    Hi,


    to create a Gurobi model from a file you need to pass the file name to the model
    constructor, e.g.,

    GRBModel
    model = new GRBModel(env, "C:\\Users\\A.Omidi\\Desktop\\flow_shop.mps");
    . See also https://www.gurobi.com/documentation/8.1/examples/load_and_solve_a_model_fro.html.
    The model.read() method can be used to read in a parameter file or attributes
    files, see also http://www.gurobi.com/documentation/8.1/refman/java_grbmodel_read.html.

    Best,
    Michael

     

    0
  • A.Omidi
    Gurobi-versary
    Conversationalist
    Investigator

    Hi,

    Thanks so much for useful replay.

    Its work fine.

     

    Regards

    Omidi. A

    0

Post is closed for comments.