[Coin-discuss] Problem with row names in ClpModel

Anureet Saxena anureet at yahoo.com
Tue Feb 21 21:44:28 EST 2006


hi,
   
  I think there is an error in the row (re)naming routines of ClpModel. I am using the latest version of Clp, which I downloaded today (Feb 21, 2006).
   
  There is a small code with 5 variables and 5 constraints which captures this error and is available at 
   
  http://www.andrew.cmu.edu/user/anureets/workspace.tgz
   
  A README file in the above .tgz directory contains a brief message describing the code. In particular, after the following operations the test3.mps file generated by the code is corrupted (it has two rows with the same name):
   
  o 3 cuts added
  o 1 cut is removed
  o 2 cuts added
   
  The bug seems to be related to the following piece of code from ClpModel::resize()
  --------------------------------------
  #ifndef CLP_NO_STD
  if (lengthNames_) {
    // reduce row and column names vectors only if necessary
    if (rowNames_.size() < (unsigned int)numberRows_)
      rowNames_.resize(numberRows_);
    if (columnNames_.size() < (unsigned int)numberColumns_)
      columnNames_.resize(numberColumns_);
  }
#endif
  -------------------------------------------------------
   
  I guess the row and column names vectors should be resized "always" irrespective of whether 
   
  "rowNames_.size() < (unsigned int)numberRows_) "
   
  or not. I would greatly appreciate any help in this regard.
   
  Thanking You,
  Anureet Saxena
   
   


Anureet Saxena
 anureet at cmu.edu
 anureet at yahoo.com
 
--This mail was delivered to you on 100% recyclable electrons.
__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20060221/54a7d135/attachment.html>


More information about the Coin-discuss mailing list