<div>hi,</div> <div> </div> <div>I am using the latest version of Cgl, and the accompanying OsiClp code. I beleive there is a problem on 1665 of the file OsiClpSolverInterface.cpp. I hereby reproduce the relevent code.</div> <div> </div> <div>void<BR>OsiClpSolverInterface::loadProblem(const CoinPackedMatrix& matrix,<BR> const double* collb, const double* colub,<BR> const double* obj,<BR> const char* rowsen, const double* rowrhs,<BR>
const double* rowrng)<BR>{<BR> // Get rid of integer information (modelPtr will get rid of its copy)<BR> assert( rowsen != NULL );<BR> assert( rowrhs != NULL );<BR> int numrows = matrix.getNumRows();<BR> double * rowlb = new double[numrows];<BR> double * rowub = new double[numrows];<BR> for (int i = numrows-1; i >= 0; --i) {<BR> convertSenseToBound(rowsen[i],rowrhs[i],rowrng[i],rowlb[i],rowub[i]); /** PROBLEM */<BR> }<BR> loadProblem(matrix, collb, colub, obj, rowlb, rowub);<BR> delete [] rowlb;<BR> delete [] rowub;<BR>}<BR></div> <div>Note that the above code will give a segmentation fault if rowrng=NULL. However the documentation in OsiClpSolverInterface.hpp says that rowrng=NULL is allowed, and in that case rowrng[i]=0 is assumed for all ranged rows. Thus we either need to change the documentation or modify the above function to account for the possibility rowrng=NULL.</div>
<div> </div> <div>regards,</div> <div>anureet</div> <div> </div><BR><BR>Anureet Saxena<br> anureet@cmu.edu<br> anureet@yahoo.com<br> <br>--This mail was delivered to you on 100% recyclable electrons.<p> 
<hr size=1><a href="http://us.rd.yahoo.com/evt=48250/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v9.php?o=US2226&cmp=Yahoo&ctv=AprNI&s=Y&s2=EM&b=50">Pinpoint customers </a>who are looking for what you sell.