Ignore:
Timestamp:
Oct 6, 2003 12:17:05 PM (16 years ago)
Author:
forrest
Message:

Stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pre/Samples/sprint.cpp

    r210 r220  
    122122  for (int iRow=0;iRow<numberRows;iRow++)
    123123    whichRows[iRow]=iRow;
     124  double originalOffset;
     125  model2->getDblParam(ClpObjOffset,originalOffset);
    124126
    125127  for (iPass=0;iPass<maxPass;iPass++) {
     
    138140      fullSolution[kColumn]=0.0;
    139141    }
     142    // Get objective offset
     143    double offset=0.0;
     144    const double * objective = model2->objective();
     145    for (iColumn=0;iColumn<numberColumns_;iColumn++)
     146      offset += fullSolution[iColumn]*objective[iColumn];
     147    small.setDblParam(ClpObjOffset,originalOffset-offset);
    140148    model.times(1.0,fullSolution,rowSolution);
    141149
Note: See TracChangeset for help on using the changeset viewer.