[Coin-lpsolver] PrimalRanging
Edwin Straver
edwin at solver.com
Thu May 31 13:32:58 EDT 2007
Hi All,
I believe that in the code that computes the ValueIncreased and
ValueDecreased, in the PrimalRanging routine the increase/and decrease are
swapped, for the case where the getStatus(iSequence) is isFixed,
atUpperBound, or atLowerBound:
So, the current code is:
checkPrimalRatios(rowArray_[1],1);
if (pivotRow_>=0) {
valueIncrease = theta_;
sequenceIncrease=pivotVariable_[pivotRow_];
}
checkPrimalRatios(rowArray_[1],-1);
if (pivotRow_>=0) {
valueDecrease = theta_;
sequenceDecrease=pivotVariable_[pivotRow_];
}
And I believe this needs to be:
checkPrimalRatios(rowArray_[1],-1);
if (pivotRow_>=0) {
valueIncrease = theta_;
sequenceIncrease=pivotVariable_[pivotRow_];
}
checkPrimalRatios(rowArray_[1],1);
if (pivotRow_>=0) {
valueDecrease = theta_;
sequenceDecrease=pivotVariable_[pivotRow_];
}
Greetings, Edwin
------------------------------------------------
Edwin Straver
edwin at solver.com
------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/clp/attachments/20070531/17fa2de0/attachment.html>
More information about the Clp
mailing list