Skip to content

Commit cf327f2

Browse files
committed
Now forcing computation of row values with MIPLIB solution file; formatted
1 parent 9d9fdf6 commit cf327f2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

check/TestFilereader.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ TEST_CASE("read-highs-lp-file1", "[highs_filereader]") {
575575
std::remove(model_file_name.c_str());
576576

577577
h.resetGlobalScheduler(true);
578+
}
578579

579580
TEST_CASE("lp-duplicate-variable", "[highs_filereader]") {
580581
const std::string test_name = Catch::getResultCapture().getCurrentTestName();

highs/lp_data/HighsLpUtils.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2204,7 +2204,9 @@ HighsStatus readSolutionFile(const std::string filename,
22042204
}
22052205
}
22062206
read_solution.value_valid = true;
2207-
if (sparse) {
2207+
if (miplib_sol || sparse) {
2208+
// MIPLIB and sparse format only have column values, so compute
2209+
// the row values and return
22082210
if (calculateRowValuesQuad(lp, read_solution.col_value,
22092211
read_solution.row_value) != HighsStatus::kOk)
22102212
return readSolutionFileErrorReturn(in_file);

0 commit comments

Comments
 (0)