Skip to content

Commit dc93a4f

Browse files
committed
Add missing initializations
1 parent 8b10c17 commit dc93a4f

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

src/mip/HighsDomain.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ class HighsDomain {
358358
conflictPoolPropagation(other.conflictPoolPropagation),
359359
infeasible_(other.infeasible_),
360360
infeasible_reason(other.infeasible_reason),
361+
infeasible_pos(0),
361362
colLowerPos_(other.colLowerPos_),
362363
colUpperPos_(other.colUpperPos_),
363364
branchPos_(other.branchPos_),

src/mip/HighsSearch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class HighsSearch {
9696
std::shared_ptr<const StabilizerOrbits> stabilizerOrbits = nullptr)
9797
: lower_bound(parentlb),
9898
estimate(parentestimate),
99+
branching_point(0.0),
99100
lp_objective(-kHighsInf),
100101
other_child_lb(parentlb),
101102
nodeBasis(std::move(parentBasis)),

src/simplex/HighsSimplexAnalysis.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ class HighsSimplexAnalysis {
180180
running_average_major_kernel_fill_factor(1.0),
181181
AnIterIt0(0),
182182
AnIterPrevIt(0),
183+
AnIterOp{},
183184
AnIterTraceNumRec(0),
184185
AnIterTraceIterDl(0),
185186
AnIterTrace{},

src/util/HighsMatrixSlice.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class HighsMatrixSlice<HighsTripletListSlice> {
196196
using pointer = const HighsSliceNonzero*;
197197
using reference = const HighsSliceNonzero&;
198198

199-
iterator(HighsInt node) : currentNode(node) {}
199+
iterator(HighsInt node) : pos_(), nodeNext(nullptr), currentNode(node) {}
200200
iterator(const HighsInt* nodeIndex, const double* nodeValue,
201201
const HighsInt* nodeNext, HighsInt node)
202202
: pos_(node == -1 ? nullptr : nodeIndex + node,
@@ -276,7 +276,8 @@ class HighsMatrixSlice<HighsTripletTreeSlicePreOrder> {
276276
using pointer = const HighsSliceNonzero*;
277277
using reference = const HighsSliceNonzero&;
278278

279-
iterator(HighsInt node) : currentNode(node) {}
279+
iterator(HighsInt node)
280+
: pos_(), nodeLeft(nullptr), nodeRight(nullptr), currentNode(node) {}
280281
iterator(const HighsInt* nodeIndex, const double* nodeValue,
281282
const HighsInt* nodeLeft, const HighsInt* nodeRight, HighsInt node)
282283
: pos_(nodeIndex + node, nodeValue + node),
@@ -374,7 +375,8 @@ class HighsMatrixSlice<HighsTripletTreeSliceInOrder> {
374375
using pointer = const HighsSliceNonzero*;
375376
using reference = const HighsSliceNonzero&;
376377

377-
iterator(HighsInt node) : currentNode(node) {}
378+
iterator(HighsInt node)
379+
: pos_(), nodeLeft(nullptr), nodeRight(nullptr), currentNode(node) {}
378380
iterator(const HighsInt* nodeIndex, const double* nodeValue,
379381
const HighsInt* nodeLeft, const HighsInt* nodeRight, HighsInt node)
380382
: pos_(nodeIndex, nodeValue),
@@ -477,7 +479,7 @@ class HighsMatrixSlice<HighsTripletPositionSlice> {
477479
using pointer = const HighsSliceNonzero*;
478480
using reference = const HighsSliceNonzero&;
479481

480-
iterator(const HighsInt* node) : node(node) {}
482+
iterator(const HighsInt* node) : pos_(), node(node), currentNode(0) {}
481483
iterator(const HighsInt* nodeIndex, const double* nodeValue,
482484
const HighsInt* node)
483485
: pos_(nodeIndex, nodeValue), node(node), currentNode(0) {}

0 commit comments

Comments
 (0)