Changeset 93 for trunk/Samples/sample2.cpp
 Timestamp:
 Mar 29, 2005 10:30:16 AM (16 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Samples/sample2.cpp
r92 r93 291 291 if (model.getMinimizationObjValue()<1.0e50) { 292 292 // post process 293 if (preProcess) 293 OsiSolverInterface * solver; 294 if (preProcess) { 294 295 process.postProcess(*model.solver()); 295 // Solution now back in solver1 296 int numberColumns = solver1.getNumCols(); 296 // Solution now back in solver1 297 solver = & solver1; 298 } else { 299 solver = model.solver(); 300 } 301 int numberColumns = solver>getNumCols(); 297 302 298 const double * solution = solver 1.getColSolution();303 const double * solution = solver>getColSolution(); 299 304 300 305 int iColumn; … … 304 309 for (iColumn=0;iColumn<numberColumns;iColumn++) { 305 310 double value=solution[iColumn]; 306 if (fabs(value)>1.0e7&&solver 1.isInteger(iColumn))311 if (fabs(value)>1.0e7&&solver>isInteger(iColumn)) 307 312 std::cout<<std::setw(6)<<iColumn<<" "<<value<<std::endl; 308 313 }
Note: See TracChangeset
for help on using the changeset viewer.