Ignore:
Timestamp:
Jul 28, 2013 9:50:00 AM (6 years ago)
Author:
forrest
Message:

try and trap bad primal bases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpSimplexPrimal.cpp

    r1972 r1973  
    253253     specialOptions_ |= 131072;
    254254     if (!startup(ifValuesPass, startFinishOptions)) {
     255         // See if better to use all slack basis
     256         if (nonLinearCost_->sumInfeasibilities()>1.0e15) {
     257           // If not all slack then make it
     258           int numberRowBasic = 0;
     259           for (int i=0;i<numberRows_;i++) {
     260             if (getRowStatus(i)==basic)
     261               numberRowBasic++;
     262           }
     263           if (numberRowBasic<numberRows_) {
     264             allSlackBasis(true);
     265             int lastCleaned=-10000;
     266             statusOfProblemInPrimal(lastCleaned, 1, &progress_, true, ifValuesPass, NULL);
     267           }
     268         }
    255269
    256270          // Set average theta
Note: See TracChangeset for help on using the changeset viewer.