Initialize double variable target-bound to avoid "maybe-uninitialized" warning

This commit is contained in:
Simon Lynen
2015-07-22 19:11:37 +02:00
parent dde4ed7e1d
commit 089035aea8

View File

@@ -1008,7 +1008,7 @@ bool ForcingAndImpliedFreeConstraintPreprocessor::Run(LinearProgram* lp) {
const Fractional lower = lp->variable_lower_bounds()[col];
const Fractional upper = lp->variable_upper_bounds()[col];
bool is_forced = false;
Fractional target_bound;
Fractional target_bound = 0.0;
for (const SparseColumn::Entry e : column) {
if (is_forcing_down[e.row()]) {
const Fractional candidate = e.coefficient() < 0.0 ? lower : upper;