Changeset 356


Ignore:
Timestamp:
Nov 13, 2009 10:44:15 AM (10 years ago)
Author:
bjarni
Message:

Removed commented code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CoinMP/src/CoinCbc.cpp

    r352 r356  
    400400}
    401401
    402 /*
    403 int coinWriteMsgLog(const char* FormatStr, ...)
    404 {
    405         va_list pVa;
    406         char strbuf[256];
    407 
    408         va_start(pVa,FormatStr);
    409         vsprintf(strbuf,FormatStr,pVa);
    410         if (global_pCoin->pSolver->MsgLogCallback) {
    411                 global_pCoin->pSolver->MsgLogCallback(strbuf);
    412         }
    413         return CBC_CALL_SUCCESS;
    414 }
    415 
    416 
    417 int coinIterLogCallback(int IterCount, double ObjectValue, int IsFeasible, double InfeasValue)
    418 {
    419         if (!global_pCoin->pProblem->SolveAsMIP) {
    420                 if (((IterCount < 100) && ((IterCount % 10) == 0)) ||
    421                          ((IterCount % 100) == 0)) {
    422                         if (!IsFeasible)
    423                                 coinWriteMsgLog("Iteration: %5d  %16.8lg  %16.8lg",IterCount, ObjectValue, InfeasValue);
    424                         else {
    425                                 coinWriteMsgLog("Iteration: %5d  %16.8lg",IterCount, ObjectValue);
    426                         }
    427                 }
    428         }
    429         if (global_pCoin->pSolver->IterCallback) {
    430                 global_pCoin->pSolver->IterCallback(IterCount, ObjectValue, IsFeasible, InfeasValue);
    431         }
    432         return CBC_CALL_SUCCESS;
    433 }
    434 
    435 
    436 int coinNodeLogCallback(int IterCount, int NodeCount, double BestBound, double BestObject, int IsMipImproved)
    437 {
    438         if ((NodeCount > 0) && (((NodeCount % 100) == 0) || (IsMipImproved))) {
    439                 coinWriteMsgLog("Node: %5d  %s  %16.8lg  %16.8lg",
    440                                    NodeCount, (IsMipImproved) ? "*" : " ", BestBound, BestObject);
    441         }
    442         if (global_pCoin->pSolver->MipNodeCallback) {
    443                 global_pCoin->pSolver->MipNodeCallback(IterCount, NodeCount, BestBound, BestObject, IsMipImproved);
    444         }
    445         return CBC_CALL_SUCCESS;
    446 }
    447 */
     402
    448403
    449404/************************************************************************/
Note: See TracChangeset for help on using the changeset viewer.