Reading mps file with MathProgBase

The most recent releases of Gurobi.jl no longer support MathProgBase (which was discontinued some time ago in favor of MathOptInterface).

You have a few options:

  1. If you want to stick to your old code (and use MathProgBase), you must use an older version of Gurobi.jl: see these instructions.

  2. If you just need to read an MPS file and extract the corresponding data, you can use the QPSReader package. It can read MPS and QPS files, in fixed and free format.

  3. You can update to the newest Gurobi.jl release (which requires Gurobi v9.0 or later), and use MathOptInterface instead of MathProfBase.
    MOI has a number of built-in parsers you can use, see the docs here.

4 Likes