<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">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!!!<br><br><br>The linear problem is:<br>Min z1+z2+z3<br>s.t x1 + x2 + x3 +x4 + z1 = 3<br> 2x1 + 2x2 + x3
+x5 + z2 = 4<br> x1 -
x2 +x6 + z3= 0 <br> all variables are positive.<br><br><br><br>And the corresponding program is (executed with visual C++)<br><br> char *problemName = "Initialisation";<br> int colCount=9;<br> int rowCount=3;<br> int nonZeroCount=13;<br> int rangeCount = 0;<br><br> char *objectName = "obj";<br> int objectSense = SOLV_OBJSENS_MIN;<br> double objectConst = 0.0;<br> double objectCoeffs[9] = { 0., 0., 0., 0., 0., 0., 1., 1. ,1.};<br><br> double lowerBounds[9] = { 0., 0., 0., 0., 0., 0., 0.,0. ,0. };<br>
double
upperBounds[9] = { 1000000., 1000000., 1000000., 1000000., 1000000., 1000000., 1000000., 1000000. ,1000000. };<br><br> char rowType[3] = { 'L', 'L', 'L'};<br> double rhsValues[3] = { 3.,4.,0.};<br><br> int matrixBegin[9+1]={0,3,6,8,9,10,11,12,13,14};<br> int matrixCount[9]={3,3,2,1,1,1,1,1,1};<br> int matrixIndex[14]={0,1,2,0,1,2,0,1,0,1,2,0,1,2};<br> double matrixValues[14]={1., 2., 1., 1., 2., -1., 1., 1., 1., 1., 1., 1., 1., 1.};<br> <br> char *colNames[9] = {"c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8","c9"};<br> char *rowNames[3] = {"r1", "r2", "r3"};<br> <br> double initValues[9] = { 0., 0., 0., 0., 0., 0., 0., 0. ,0. };<br><br> double optimalValue = 1428729.2857143;;<br><br> RunTestProblem1(problemName,
optimalValue, colCount, rowCount, <br> nonZeroCount, rangeCount, objectSense, objectConst, objectCoeffs, <br> lowerBounds, upperBounds, rowType, rhsValues, NULL, <br> matrixBegin, matrixCount, matrixIndex, matrixValues, <br> colNames, rowNames, objectName, initValues, NULL, 0);<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><br></div></div><br>
</div></div></div><br>
</div></div></div></div><br>
<hr size="1">
Ne pleurez pas si votre Webmail ferme. <a href="http://fr.rd.yahoo.com/mail_fr/taglines/caramail/*http://fr.docs.yahoo.com/mail/transfert_mails.html">Récupérez votre historique sur Yahoo! Mail</a></body></html>