Skip to content

Incorrect reading of MPS files with QCMATRIX field #2668

@sebastiendesignolle

Description

@sebastiendesignolle

When reading MPS files with quadratic constraints, off-diagonal elements seem to get a factor two. Here is a minimal working example:

NAME          mwe
ROWS
 N  obj
 E  c1
 G  q1
COLUMNS
    x1        obj       1.0
    x1        c1        1.0
    x2        c1        -1.0
RHS
    rhs       c1        0.0
    rhs       q1        1.0
QCMATRIX      q1
    x1        x1        1.0
    x1        x2        1.0
    x2        x1        1.0
ENDATA

Solving this problem with Gurobi within Julia (reading the file with MOI) leads to a solution of 1/√3, while solving it directly with Gurobi gives the expected solution of 1/√2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions