Skip to main content

Unable to read MPS file

Answered

Comments

2 comments

  • 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

Please sign in to leave a comment.