Skip to content

Commit 9b59d2b

Browse files
committed
be safer on fathommany
1 parent 2eaf7d1 commit 9b59d2b

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/ClpNode.cpp

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,9 @@ void ClpNode::gutsOfConstructor(ClpSimplex *model, const ClpNodeStuff *stuff,
115115
CoinMemcpyN(model->djRegion(), numberTotal, dualSolution_); //? has duals as well?
116116
ClpDualRowSteepest *pivot = dynamic_cast< ClpDualRowSteepest * >(model->dualRowPivot());
117117
if (pivot) {
118-
if (weights_) {
119-
//if (weights_->numberRows()==pivot->numberRows()) {
120-
weights_->fill(*pivot);
121-
//} else {
122-
//delete weights_;
123-
//weights_ = new ClpDualRowSteepest(*pivot);
124-
//}
125-
} else {
126-
weights_ = new ClpDualRowSteepest(*pivot);
127-
}
118+
// safer to redo
119+
delete weights_;
120+
weights_ = new ClpDualRowSteepest(*pivot);
128121
}
129122
CoinMemcpyN(model->pivotVariable(), numberRows, pivotVariables_);
130123
} else {

0 commit comments

Comments
 (0)