Changeset 1512 for trunk/Clp


Ignore:
Timestamp:
Feb 8, 2010 11:26:25 AM (10 years ago)
Author:
forrest
Message:

fix seg fault on null problem and messagee in idiot

Location:
trunk/Clp/src
Files:
2 edited

Legend:

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

    r1502 r1512  
    51275127{
    51285128  //double savedPivotTolerance = factorization_->pivotTolerance();
    5129   int saveQuadraticActivated = objective_->activated();
    5130   objective_->setActivated(0);
     5129  int saveQuadraticActivated = 0;
     5130  if (objective_) {
     5131    saveQuadraticActivated = objective_->activated();
     5132    objective_->setActivated(0);
     5133  } else {
     5134    // create dummy stuff
     5135    assert (!numberColumns_);
     5136    if (!numberRows_)
     5137      problemStatus_=0; // say optimal
     5138    return 0;
     5139  }
    51315140  ClpObjective * saveObjective = objective_;
    51325141  CoinAssert (ifValuesPass>=0&&ifValuesPass<3);
  • trunk/Clp/src/Idiot.cpp

    r1506 r1512  
    830830    }
    831831    if (iteration>50&&n==numberAway&&result.infeas<1.0e-4) {
     832#ifdef CLP_INVESTIGATE
    832833      printf("infeas small %g\n",result.infeas);
     834#endif
    833835      break; // not much happening
    834836    }
Note: See TracChangeset for help on using the changeset viewer.