bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MPS files for maximization lack OBJSENSE


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 --wfreemps simple_max.mps

I get the (correct) output

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

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,

Julian
--
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

HiGHS

My working hours may not be your working hours. Do not feel pressure to reply to this email outside your working hours.
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.

Attachment: simple_max.mod
Description: audio/mod

Attachment: simple_max.mps
Description: Text document

Attachment: simple_max_correct.mps
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]