Ignore:
Timestamp:
Jan 11, 2011 2:04:34 PM (9 years ago)
Author:
forrest
Message:

add some more heuristics

File:
1 edited

Legend:

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

    r1582 r1585  
    1038510385        if (continuousSolver_)
    1038610386            solver_ = continuousSolver_;
     10387        // save basis and solution
     10388        CoinWarmStartBasis * basis = dynamic_cast<CoinWarmStartBasis*>(solver_->getWarmStart()) ;
     10389        assert(basis != NULL);
     10390        double * saveSolution = CoinCopyOfArray(solver_->getColSolution(),
     10391                                                solver_->getNumCols());
    1038710392        // move solution to continuous copy
    1038810393        solver_->setColSolution(solution);
     
    1069210697        delete [] saveUpper;
    1069310698
     10699        solver_->setColSolution(saveSolution);
     10700        delete [] saveSolution;
     10701        solver_->setWarmStart(basis);
     10702        delete basis ;
    1069410703        /*
    1069510704          Restore the usual solver.
Note: See TracChangeset for help on using the changeset viewer.