<div dir="ltr"><div>Hi, <br><br>I am using CLP (downloaded from <a href="http://www.coin-or.org/download/source/Clp/Clp-1.16.9.zip" target="_blank">http://www.coin-or.org/download/source/Clp/Clp-1.16.9.zip</a>) in Visual Studio 2013 VC++ on win 7.<br><br>I followed the example in "clp\examples\rowColumn.cpp" to build an LP.<br><br>I found that "elementByRow" has only one value even if I have used: <br><br>double * elementByRow = &elementByRowVect[0]; // elementByRowVect hodl the elements loaded from a file. <br><br>I have copied the values to it. <br><br>    int ind = 0; <br>    for (vector<double>::iterator it = elementByRowVect.begin(); it != elementByRowVect.end(); ++it)<br>    {<br>        elementByRow[ind++] = *it;<br>    }<br><br>But, in "byRow", the "element_" and "index_" are all 0x00000. I got run-time error. <br><br><br>CoinPackedMatrix byRow(false, numberColumns, numberRows, numElements, elementByRow, column, rowStart, NULL);<br><br>    modelByRow.loadProblem(byRow,columnLower, columnUpper, objective,rowLowerBound, rowUpperBound);<br><br></div>How to make "byRow" understand that "elementByRow" is an array that has values ? <br></div>