Ignore:
Timestamp:
May 9, 2011 9:26:44 AM (9 years ago)
Author:
pbelotti
Message:

added code to compile recordBestSol. minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Couenne/src/main/BonCouenne.cpp

    r533 r571  
    2121#include <stdlib.h>
    2222
    23 //#include "CouenneConfig.h"
    24 
    2523#include "CoinTime.hpp"
    2624#include "CoinError.hpp"
     
    3028
    3129#include "BonCbc.hpp"
    32 //#include "BonFilterSolver.hpp"
    3330
    3431#include "CbcCutGenerator.hpp"
     
    5350#endif
    5451
     52#include "CoinSignal.hpp"
     53
     54extern "C" {
     55
     56  static int nInterrupts = 0;
     57  static void signal_handler (int sig) {
     58
     59    if (!nInterrupts) {
     60      std::cerr << "[BREAK]" << std::endl;
     61      abort ();
     62    }
     63    return;
     64  }
     65}
     66
    5567int main (int argc, char *argv[]) {
     68
     69  //CoinSighandler_t saveSignal = SIG_DFL;
     70  //saveSignal = signal (SIGINT, signal_handler);
    5671
    5772    printf ("Couenne %s --  an Open-Source exact solver for Mixed Integer Nonlinear Optimization\n\
     
    183198    jnlst -> Printf (J_ERROR, J_COUENNE, "\n\
    184199Linearization cuts added at root node:   %8d\n\
    185 Linearization cuts added in total        %8d  (separation time: %gs)\n\
     200Linearization cuts added in total:       %8d  (separation time: %gs)\n\
    186201Total solving time:                      %8gs (%gs in branch-and-bound)\n\
    187202Lower bound:                           %10g\n\
Note: See TracChangeset for help on using the changeset viewer.