Skip to content

Commit 4418ec5

Browse files
committed
Make compiler happy
1 parent 032b499 commit 4418ec5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/simplex/HEkkDual.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ void HEkkDual::rebuild() {
10631063
// Note that computePrimalObjectiveValue sets
10641064
// has_primal_objective_value
10651065
const bool check_updated_objective_value = status.has_dual_objective_value;
1066-
double previous_dual_objective_value;
1066+
double previous_dual_objective_value = -kHighsInf;
10671067
if (check_updated_objective_value) {
10681068
// debugUpdatedObjectiveValue(ekk_instance_, algorithm, solve_phase,
10691069
// "Before computeDual");

src/simplex/HEkkPrimal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ void HEkkPrimal::rebuild() {
697697
// basic variables, and baseValue only corresponds to the new
698698
// ordering once computePrimal has been called
699699
const bool check_updated_objective_value = status.has_primal_objective_value;
700-
double previous_primal_objective_value;
700+
double previous_primal_objective_value = -kHighsInf;
701701
if (check_updated_objective_value) {
702702
// debugUpdatedObjectiveValue(ekk_instance_, algorithm, solve_phase,
703703
// "Before INVERT");

0 commit comments

Comments
 (0)