Skip to content
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

Added HMpsFF::Parsekey::kUsercuts and USERCUTS to HMpsFF::cannotParseSection #2208

Merged
merged 1 commit into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/io/HMpsFF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
bool HMpsFF::cannotParseSection(const HighsLogOptions& log_options,
const HMpsFF::Parsekey keyword) {
switch (keyword) {
// Identify the sections that can be parsed
// Identify the sections that cannot be parsed
case HMpsFF::Parsekey::kDelayedrows:
highsLogUser(log_options, HighsLogType::kError,
"MPS file reader cannot parse DELAYEDROWS section\n");
Expand All @@ -364,6 +364,10 @@
highsLogUser(log_options, HighsLogType::kError,
"MPS file reader cannot parse MODELCUTS section\n");
break;
case HMpsFF::Parsekey::kUsercuts:
highsLogUser(log_options, HighsLogType::kError,

Check warning on line 368 in src/io/HMpsFF.cpp

View check run for this annotation

Codecov / codecov/patch

src/io/HMpsFF.cpp#L367-L368

Added lines #L367 - L368 were not covered by tests
"MPS file reader cannot parse USERCUTS section\n");
break;

Check warning on line 370 in src/io/HMpsFF.cpp

View check run for this annotation

Codecov / codecov/patch

src/io/HMpsFF.cpp#L370

Added line #L370 was not covered by tests
case HMpsFF::Parsekey::kIndicators:
highsLogUser(log_options, HighsLogType::kError,
"MPS file reader cannot parse INDICATORS section\n");
Expand Down Expand Up @@ -448,6 +452,8 @@
key = HMpsFF::Parsekey::kDelayedrows;
else if (upper_word == "MODELCUTS")
key = HMpsFF::Parsekey::kModelcuts;
else if (upper_word == "USERCUTS")
key = HMpsFF::Parsekey::kUsercuts;

Check warning on line 456 in src/io/HMpsFF.cpp

View check run for this annotation

Codecov / codecov/patch

src/io/HMpsFF.cpp#L456

Added line #L456 was not covered by tests
else if (upper_word == "INDICATORS")
key = HMpsFF::Parsekey::kIndicators;
else if (upper_word == "SETS")
Expand Down
1 change: 1 addition & 0 deletions src/io/HMpsFF.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class HMpsFF {
kCsection,
kDelayedrows,
kModelcuts,
kUsercuts,
kIndicators,
kSets,
kSos,
Expand Down
Loading