Skip to content

Commit da820fe

Browse files
authored
Merge pull request #3231 from fwesselm/fixWarningTestQpOracle
Initialize optimal objective value
2 parents 6c6282b + f3a6291 commit da820fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

check/TestQpOracle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ TEST_CASE("hessian-oracle-primal1", "[qp-oracle]") {
459459
REQUIRE(h.passModel(lp) == HighsStatus::kOk);
460460
REQUIRE(h.passHessian(lp.num_col_, oracleCallSquareHessian,
461461
&square_hessian) == HighsStatus::kOk);
462-
double optimal_obective_value;
462+
double optimal_obective_value = kHighsInf;
463463
std::vector<double> solution;
464464
for (auto& solver : solvers) {
465465
h.setOptionValue("solver", solver);
@@ -474,7 +474,7 @@ TEST_CASE("hessian-oracle-primal1", "[qp-oracle]") {
474474
solution.data()));
475475
}
476476
}
477-
// std::remove(write_model_filename.c_str());
477+
std::remove(write_model_filename.c_str());
478478

479479
h.resetGlobalScheduler(true);
480480
}

0 commit comments

Comments
 (0)