Ignore:
Timestamp:
Oct 16, 2003 3:15:17 PM (17 years ago)
Author:
forrest
Message:

Some corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Samples/sprint.cpp

    r225 r229  
    118118  // Just take this number of columns in small problem
    119119  int smallNumberColumns = min(3*numberRows,numberColumns);
     120  smallNumberColumns = max(smallNumberColumns,1000);
    120121  // We will be using all rows
    121122  int * whichRows = new int [numberRows];
     
    123124    whichRows[iRow]=iRow;
    124125  double originalOffset;
    125   model2->getDblParam(ClpObjOffset,originalOffset);
     126  model.getDblParam(ClpObjOffset,originalOffset);
    126127
    127128  for (iPass=0;iPass<maxPass;iPass++) {
     
    142143    // Get objective offset
    143144    double offset=0.0;
    144     const double * objective = model2->objective();
    145     for (iColumn=0;iColumn<numberColumns_;iColumn++)
     145    const double * objective = model.objective();
     146    for (iColumn=0;iColumn<originalNumberColumns;iColumn++)
    146147      offset += fullSolution[iColumn]*objective[iColumn];
    147148    small.setDblParam(ClpObjOffset,originalOffset-offset);
Note: See TracChangeset for help on using the changeset viewer.