Changeset 1951


Ignore:
Timestamp:
May 1, 2013 9:32:24 AM (6 years ago)
Author:
forrest
Message:

add event handler for barrier iteration

File:
1 edited

Legend:

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

    r1929 r1951  
    1515#include "CoinHelperFunctions.hpp"
    1616#include "ClpPredictorCorrector.hpp"
     17#include "ClpEventHandler.hpp"
    1718#include "CoinPackedMatrix.hpp"
    1819#include "ClpMessage.hpp"
     
    251252                    << cholesky_->rank()
    252253                    << CoinMessageEol;
     254          // Check event
     255          {
     256            int status = eventHandler_->event(ClpEventHandler::endOfIteration);
     257            if (status >= 0) {
     258              problemStatus_ = 5;
     259              secondaryStatus_ = ClpEventHandler::endOfIteration;
     260              break;
     261            }
     262          }
    253263#if 0
    254264          if (numberIterations_ == -1) {
Note: See TracChangeset for help on using the changeset viewer.