[Coin-discuss] OsiRowCut::setRow, testForDuplicateIndex

Matthew Galati magh at lehigh.edu
Sun Jun 19 12:37:56 EDT 2005


Can someone change OsiRowCut::setRow to accept an extra argument "bool 
testForDuplicateIndex" (default to true)?

This function calls row_.setVector which takes as its 4th arg, 
testForDuplicateIndex, and is defaulted to true. When this is set to 
true, it can add a significant amount of unnecessary overhead. It would 
be nice to be able to turn this check off when using setRow.

Thank you in advance.



void OsiRowCut::setRow(int size,
                       const int * colIndices, const double * elements)
{
  row_.setVector(size,colIndices,elements);
}


void
CoinPackedVector::setVector(int size, const int * inds, const double * 
elems,
                           bool testForDuplicateIndex)
   throw(CoinError)
{
   clear();
   gutsOfSetVector(size, inds, elems, testForDuplicateIndex, "setVector");
}



Thanks,
Matt

-- 
Matthew Galati - Optimization Developer
SAS Institute - Analytical Solutions
Phone 919-531-0332, R5327 
Fax   919-677-4444
http://coral.ie.lehigh.edu/~magh
http://ordlnx2.na.sas.com/projects/OptWiki
http://www.sas.com/technologies/analytics/optimization/




More information about the Coin-discuss mailing list