Ignore:
Timestamp:
Mar 28, 2005 4:26:55 PM (16 years ago)
Author:
forrest
Message:

mistake on preProcess

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Samples/sample2.cpp

    r80 r92  
    293293    if (preProcess)
    294294      process.postProcess(*model.solver());
    295     int numberColumns = model.solver()->getNumCols();
     295    // Solution now back in solver1
     296    int numberColumns = solver1.getNumCols();
    296297   
    297     const double * solution = model.solver()->getColSolution();
     298    const double * solution = solver1.getColSolution();
    298299   
    299300    int iColumn;
     
    303304    for (iColumn=0;iColumn<numberColumns;iColumn++) {
    304305      double value=solution[iColumn];
    305       if (fabs(value)>1.0e-7&&model.solver()->isInteger(iColumn))
     306      if (fabs(value)>1.0e-7&&solver1.isInteger(iColumn))
    306307        std::cout<<std::setw(6)<<iColumn<<" "<<value<<std::endl;
    307308    }
Note: See TracChangeset for help on using the changeset viewer.