[Coin-discuss] Need help on coinMP

Leorey.Marquez at csiro.au Leorey.Marquez at csiro.au
Thu Sep 13 22:13:10 EDT 2007


> Hi,
> I am using coinMP to solve large scale vehicle allocation problems.
> I have a MS Visual Studio C++ application that creates the problem by
> obtaining fleet information and booking requests from an MS SQL
> Server, and then passes on the problem to coinMP via CoinLoadProblem.
> Unfortunately, coinMP crashes when the problem seems to be "big". (My
> biggest problem has 5700 bookings, 1800 vehicles. MPS file  will have
> 726000 columns, 148000 rows)
> 
> I've pinpointed the line/s  where the coinMP error seems to occur.
> 
> I am hoping you can give insights or suggestion on the solution.
> 
> The relevant block of code from  CoinLoadProblem is given below . 
> 
> ==================
>    pCoin->clp->loadProblem(ColCount, RowCount, MatrixBegin,
> MatrixIndex, MatrixValues,LowerBounds, UpperBounds, ObjectCoeffs,
> pCoin->RowLower, pCoin->RowUpper);
> 
> 	std::vector<std::string> rowNameList;
> 	rowNameList.reserve(RowCount);
> 	for (i = 0; i < RowCount; i++) {
> 	  try {
> 		rowNameList.push_back(RowNames[i]);
>       }
> 
> 	std::vector<std::string> colNameList;
> 	colNameList.reserve(ColCount);
> 	for (i = 0; i < ColCount; i++) {
> 		colNameList.push_back(ColNames[i]);
>       }
> 
> 	pCoin->clp->copyNames(rowNameList, colNameList);
> 
> =============
> 
> Here are my observations.
> 1. clp->loadProblem goes through. pCoin is the coin problem object.
> Clp is the Coin LP object.
> 2. If Rowcount is "big", around 10000, the rowNameList.reserve goes
> through but the first push back (i=0) fails. RowNames[0] is NULL.
> RowNames should not be NULL.
> 3. If Rowcount is small but ColCount is "big", around 10000, the
> colNameList.reserve goes through but the first push back (i=0) fails.
> ColNames[0] is NULL. ColNames should not be NULL.
4. The error message from MS Studio is : "Unhandled exception at
0x7c901010 in AllocTest.exe: 0C0000005: Access violation reading
location 0x00000014."
5. I haven't found anything that limits the size of the problem. Where
in coinMP are these set, if any?

> Thanks in advance for any assistance.
> 
> Leo Marquez
> leorey.marquez at csiro.au
> 
> 
> =======================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20070914/70b94230/attachment.html>


More information about the Coin-discuss mailing list