Changeset 1599


Ignore:
Timestamp:
Aug 31, 2010 9:36:05 AM (9 years ago)
Author:
forrest
Message:

example is rubbish - but at least it should compile!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/examples/sprint2.cpp

    r1597 r1599  
    3838     double * saveUpper = new double [numberColumns];
    3939     memcpy(saveUpper, columnUpper, numberColumns * sizeof(double));
     40     double * solution = model.primalColumnSolution();
    4041     // Fix in some magical way so remaining problem is easy
    4142#if 0
     
    4950     }
    5051#else
    51      double * obj = model->objective();
     52     double * obj = model.objective();
    5253     double * saveObj = new double [numberColumns];
    5354     memcpy(saveObj, obj, numberColumns * sizeof(double));
    5455     memset(obj, 0, numberColumns * sizeof(double));
    55      model->dual();
     56     model.dual();
    5657     memcpy(obj, saveObj, numberColumns * sizeof(double));
    5758     delete [] saveObj;
     
    6263     }
    6364#endif
    64      double * solution = model.primalColumnSolution();
    6565
    6666     // Just do this number of passes
     
    122122               lastObjective = model.objectiveValue();
    123123               // now massage weight so all basic in plus good djs
    124                const double * djs = model->primalDualSolution();
     124               const double * djs = model.dualColumnSolution();
    125125               for (int iColumn = 0; iColumn < numberColumns; iColumn++) {
    126126                    double dj = djs[iColumn];
Note: See TracChangeset for help on using the changeset viewer.