Ignore:
Timestamp:
May 10, 2008 8:21:18 PM (12 years ago)
Author:
forrest
Message:

try and stop loop

File:
1 edited

Legend:

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

    r1197 r1201  
    52365236
    52375237  int iRow,iColumn;
     5238  int maxPass = maximumIterations();
    52385239  while (problemStatus_<0) {
    52395240    // clear
     
    52755276    // Say good factorization
    52765277    factorType=1;
     5278    maxPass--;
     5279    if (maxPass<-10) {
     5280      // odd
     5281      returnCode=1;
     5282      problemStatus_ = 3;
     5283      // can't say anything interesting - might as well return
     5284#ifdef CLP_DEBUG
     5285      printf("returning from fastDual after %d iterations with code %d because of loop\n",
     5286             numberIterations_,returnCode);
     5287#endif
     5288      break;
     5289    }
    52775290
    52785291    // Do iterations
Note: See TracChangeset for help on using the changeset viewer.