|
From: | Julian Hall |
Subject: | MPS files for maximization lack OBJSENSE |
Date: | Sat, 14 May 2022 10:33:58 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 |
When using glpsol (GLPSOL: GLPK LP/MIP Solver, v4.65) for the attached .mod file thus
glpsol -m simple_max.mod --w
freemps simple_max.mps
I get the (correct) output
0: obj = -0.000000000e+00 inf = 0.000e+00 (2)
2: obj = 1.000000000e+01 inf = 0.000e+00 (0)
OPTIMAL LP SOLUTION FOUND
but the (attached) MPS file is set up for the default sense (minimization). Thus, when running
glpsol simple_max.mps
I get the output
0: obj = 0.000000000e+00 inf = 0.000e+00 (0)
OPTIMAL LP SOLUTION FOUND
The same happens if --wmps is used.
When writing out the MPS file glpsol must either
OBJSENSE
MAX
How can this bug in glpsol be fixed?
Thanks,
Dr. J. A. Julian Hall, Reader, School of Mathematics, University of Edinburgh, James Clerk Maxwell Building, Peter Guthrie Tait Road, EDINBURGH, EH9 3FD, UK. Room: 5418 Phone: [+44](131) 650 5075 Email: J.A.J.Hall@ed.ac.uk Web: https://www.maths.ed.ac.uk/school-of-mathematics/people/a-z?person=47 |
simple_max.mod
Description: audio/mod
simple_max.mps
Description: Text document
simple_max_correct.mps
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |