Changeset 434
 Timestamp:
 Sep 10, 2004 5:43:50 PM (15 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Test/ClpMain.cpp
r428 r434 914 914 STDIN,299,false); 915 915 parameters[numberParameters++]= 916 ClpItem("allS!lack","Set basis back to all slack ",916 ClpItem("allS!lack","Set basis back to all slack and reset solution", 917 917 ALLSLACK,false); 918 918 parameters[numberParameters1].setLonghelp … … 1580 1580 std::cout<<types[iType]<<std::endl; 1581 1581 for ( iParam=0; iParam<numberParameters; iParam++ ) { 1582 int type = parameters[iParam]. indexNumber();1582 int type = parameters[iParam].type(); 1583 1583 if (parameters[iParam].displayThis()&&type>=limits[iType] 1584 1584 &&type<limits[iType+1]) { … … 1597 1597 } 1598 1598 } else if (type==FULLGENERALQUERY) { 1599 std::cout<<"Full list of ommands is:"<<std::endl;1599 std::cout<<"Full list of commands is:"<<std::endl; 1600 1600 int maxAcross=5; 1601 1601 int limits[]={1,101,201,301,401}; … … 1610 1610 std::cout<<types[iType]<<std::endl; 1611 1611 for ( iParam=0; iParam<numberParameters; iParam++ ) { 1612 int type = parameters[iParam]. indexNumber();1612 int type = parameters[iParam].type(); 1613 1613 if (type>=limits[iType] 1614 1614 &&type<limits[iType+1]) { … … 2267 2267 break; 2268 2268 case ALLSLACK: 2269 models[iModel].createStatus(); 2270 { 2271 // and do solution 2272 int iColumn; 2273 double * solution = models[iModel].primalColumnSolution(); 2274 const double * lower = models[iModel].columnLower(); 2275 const double * upper = models[iModel].columnUpper(); 2276 int numberColumns = models[iModel].numberColumns(); 2277 for (iColumn=0;iColumn<numberColumns;iColumn++) { 2278 if (lower[iColumn]>0.0) { 2279 solution[iColumn]=lower[iColumn]; 2280 } else if (upper[iColumn]<0.0) { 2281 solution[iColumn]=upper[iColumn]; 2282 } else { 2283 solution[iColumn]=0.0; 2284 } 2285 } 2286 } 2269 models[iModel].allSlackBasis(); 2287 2270 break; 2288 2271 case REVERSE:
Note: See TracChangeset
for help on using the changeset viewer.