Changeset 1141 for trunk


Ignore:
Timestamp:
Apr 10, 2009 10:08:41 AM (11 years ago)
Author:
forrest
Message:

alter code for end solve

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcSolver.cpp

    r1132 r1141  
    62596259                    solver2 = process.preProcessNonDefault(*saveSolver,translate[preProcess],numberPasses,
    62606260                                                         tunePreProcess);
     6261                    /*solver2->writeMps("after");
     6262                      saveSolver->writeMps("before");*/
    62616263                    osiclp->getModelPtr()->setPerturbation(savePerturbation);
    62626264                  }
     
    83088310                  delete basis;
    83098311                  originalSolver->resolve();
     8312                  if (!originalSolver->isProvenOptimal()) {
     8313                    // try all slack
     8314                    CoinWarmStartBasis * basis = dynamic_cast<CoinWarmStartBasis *> (babModel_->solver()->getEmptyWarmStart());
     8315                    originalSolver->setBasis(*basis);
     8316                    delete basis;
     8317                    originalSolver->initialSolve();
     8318                  }
    83108319                  assert (originalSolver->isProvenOptimal());
    83118320                }
Note: See TracChangeset for help on using the changeset viewer.