-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FileFormats.MPS] Problem when reading generated MPS with CPLEX #2425
Comments
I hate non-standardized file formats. Gurobi can read it fine: (base) oscar@Oscars-MBP /tmp % gurobi_cl bug.mps
Set parameter LogFile to value "gurobi.log"
Using license file /Users/oscar/gurobi.lic
Gurobi Optimizer version 10.0.0 build v10.0.0rc2 (mac64[x86])
Copyright (c) 2022, Gurobi Optimization, LLC
Warning: duplicate bounds for column foo.
Read MPS format model from file bug.mps
Reading time = 0.00 seconds
: 0 rows, 1 columns, 0 nonzeros
CPU model: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
Thread count: 4 physical cores, 8 logical processors, using up to 8 threads
Optimize a model with 0 rows, 1 columns and 0 nonzeros
Model fingerprint: 0x4557e55e
Variable types: 0 continuous, 1 integer (1 binary)
Coefficient statistics:
Matrix range [0e+00, 0e+00]
Objective range [0e+00, 0e+00]
Bounds range [1e+00, 1e+00]
RHS range [0e+00, 0e+00]
Found heuristic solution: objective 0.0000000
Explored 0 nodes (0 simplex iterations) in 0.00 seconds (0.00 work units)
Thread count was 1 (of 8 available processors)
Solution count 1: 0
Optimal solution found (tolerance 1.00e-04)
Best objective 0.000000000000e+00, best bound 0.000000000000e+00, gap 0.0000% although it gives From https://www.ibm.com/docs/en/icos/22.1.0?topic=standard-records-in-mps-format So I guess we should treat I don't have a CPLEX binary, so can you check what it does for this (I assume also error):
|
Thank you for your quick reply! It fails again:
|
Sigh. I guess we can/should fix this to prevent duplicate bounds from being written. |
When a binary variable is fixed, the generated MPS cannot be read with CPLEX due to
'FX' bound type illegal when prior bound given.
mwe.mps
file content:Then in CPLEX:
Removing
BV bounds foo
works. If the variable is fixed, the fact that it is a binary variable should not be stated anymore in the MPS file.The text was updated successfully, but these errors were encountered: