[CoinMp] failed test with CoinMP!

Stuart Mitchell s.mitchell at auckland.ac.nz
Thu Feb 12 15:04:06 EST 2009


Row type should be I think

    char rowType[3] = { 'E', 'E', 'E'};

please email me through 
 coinmp at list.coin-or.org

As then other people may start using it and others can search from the
archives.

I'm not really interested in just helping you. But if it is on record so
others can see I feel better about it.


Stu


On Thu, 2009-02-12 at 19:53 +0000, hela masri wrote:
> 
> 
> I use CoinMP dll, to test linear programs. But for the following
> problem, I got an erroneous solution
> (x1=0,x2=0,x3=0,x4=0,x5=0,x6=0,z1=0,z2=0,z3=0) with the optimal value
> equal to zero. But this vector is not feasible!!!
> 
> 
> The linear problem is:
> Min    z1+z2+z3
> s.t      x1   + x2   + x3 +x4              + z1              = 3
>          2x1 + 2x2 + x3      +x5                + z2      =  4
>          x1    - x2                         +x6             + z3=
> 0     
>         all variables are positive.
> 
> 
> 
> And the corresponding program is (executed with visual C++)
> 
>     char *problemName = "Initialisation";
>     int colCount=9;
>     int rowCount=3;
>     int nonZeroCount=13;
>     int rangeCount = 0;
> 
>     char *objectName = "obj";
>     int objectSense = SOLV_OBJSENS_MIN;
>     double objectConst = 0.0;
>     double objectCoeffs[9] = { 0., 0., 0., 0., 0., 0., 1., 1. ,1.};
> 
>     double lowerBounds[9] = { 0., 0., 0., 0., 0., 0., 0.,0. ,0. };
>     double upperBounds[9] = { 1000000., 1000000., 1000000., 1000000.,
> 1000000., 1000000., 1000000., 1000000. ,1000000. };
> 
>     char rowType[3] = { 'L', 'L', 'L'};
>     double rhsValues[3] = { 3.,4.,0.};
> 
>     int matrixBegin[9+1]={0,3,6,8,9,10,11,12,13,14};
>     int matrixCount[9]={3,3,2,1,1,1,1,1,1};
>     int matrixIndex[14]={0,1,2,0,1,2,0,1,0,1,2,0,1,2};
>     double matrixValues[14]={1., 2., 1., 1., 2., -1., 1., 1., 1., 1.,
> 1., 1., 1., 1.};
>     
>     char *colNames[9] = {"c1", "c2", "c3", "c4", "c5", "c6", "c7",
> "c8","c9"};
>     char *rowNames[3] = {"r1", "r2", "r3"};
>     
>     double initValues[9] = { 0., 0., 0., 0., 0., 0., 0., 0. ,0. };
> 
>     double optimalValue = 1428729.2857143;;
> 
>     RunTestProblem1(problemName, optimalValue, colCount, rowCount, 
>       nonZeroCount, rangeCount, objectSense, objectConst,
> objectCoeffs, 
>       lowerBounds, upperBounds, rowType, rhsValues, NULL, 
>       matrixBegin, matrixCount, matrixIndex, matrixValues, 
>       colNames, rowNames, objectName, initValues, NULL, 0);
> 
> 
> 
> 
> 
> 
> 
> 
> ______________________________________________________________________
> Ne pleurez pas si votre Webmail ferme. Récupérez votre historique sur
> Yahoo! Mail
> 
> 
> ______________________________________________________________________
> Ne pleurez pas si votre Webmail ferme. Récupérez votre historique sur
> Yahoo! Mail
-- 
___________________________________
Dr Stuart Mitchell
Research Fellow
Light Metals Research Centre (LMRC)
University of Auckland
Private Bag 92019
Auckland
New Zealand

Ph (wk)  +64 9 3737599 ext 84867
   (fax) +64 9 3737925
   (mb)  +64 21 441331
___________________________________



More information about the CoinMp mailing list