Skip to content
Open
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
4 changes: 2 additions & 2 deletions highs/io/HMPSIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@
!col_cost[c_n] && a_start[c_n] == a_start[c_n + 1];
if (no_cost_zero_column) {
// Possibly skip this column if it's zero and has no cost
if (!highs_isInfinity(ub) || lb) {
if (!highs_isInfinity(ub) || lb || discrete) {

Check warning on line 879 in highs/io/HMPSIO.cpp

View check run for this annotation

Codecov / codecov/patch

highs/io/HMPSIO.cpp#L879

Added line #L879 was not covered by tests
// Column would have a bound to report
num_no_cost_zero_columns_in_bounds_section++;
}
Expand Down Expand Up @@ -1014,7 +1014,7 @@
highsLogUser(log_options, HighsLogType::kInfo,
"Model has %" HIGHSINT_FORMAT
" zero columns with no costs: %" HIGHSINT_FORMAT
" have finite upper bounds "
" are discrete or have finite upper bounds "
"or nonzero lower bounds and are %swritten in MPS file\n",
num_no_cost_zero_columns,
num_no_cost_zero_columns_in_bounds_section,
Expand Down
Loading