Skip to content

Commit b53bef3

Browse files
authored
Merge pull request ERGO-Code#2341 from ERGO-Code/fix-read-mps-csection
Fix reading MPS with CSECTION
2 parents f5d43f1 + c2a4897 commit b53bef3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

highs/io/HMpsFF.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,10 @@ HMpsFF::Parsekey HMpsFF::checkFirstWord(std::string& strline, size_t& start,
475475
// Can have keywords used as column names or names of RHS, BOUND,
476476
// RANGES etc, so assume this if there are non-blanks after the
477477
// apparent keyword. Only cases that don't work are NAME, OBJSENSE,
478-
// QCMATRIX and QSECTION, since they can be followed by text
478+
// QCMATRIX, QSECTION, and CSECTION since they can be followed by text
479479
if (key == HMpsFF::Parsekey::kName || key == HMpsFF::Parsekey::kObjsense ||
480-
key == HMpsFF::Parsekey::kQcmatrix || key == HMpsFF::Parsekey::kQsection)
480+
key == HMpsFF::Parsekey::kQcmatrix || key == HMpsFF::Parsekey::kQsection ||
481+
key == HMpsFF::Parsekey::kCsection)
481482
return key;
482483
assert(key != HMpsFF::Parsekey::kNone);
483484

0 commit comments

Comments
 (0)