Changeset 722


Ignore:
Timestamp:
Aug 5, 2007 6:55:47 AM (12 years ago)
Author:
forrest
Message:

correct message for heuristic solution

File:
1 edited

Legend:

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

    r720 r722  
    78197819          stateOfSearch_ = 2;
    78207820       
    7821         handler_->message(how,messages_)
    7822           <<bestObjective_<<numberIterations_
    7823           <<numberNodes_<<getCurrentSeconds()
    7824           <<CoinMessageEol;
     7821        if (how!=CBC_ROUNDING) {
     7822          handler_->message(how,messages_)
     7823            <<bestObjective_<<numberIterations_
     7824            <<numberNodes_<<getCurrentSeconds()
     7825            <<CoinMessageEol;
     7826        } else {
     7827          assert (lastHeuristic_);
     7828          const char * name = lastHeuristic_->heuristicName();
     7829          handler_->message(CBC_ROUNDING,messages_)
     7830            <<bestObjective_
     7831            <<name
     7832            <<numberIterations_
     7833          <<numberNodes_<<getCurrentSeconds()
     7834            <<CoinMessageEol;
     7835        }
    78257836      }
    78267837    }
Note: See TracChangeset for help on using the changeset viewer.