Ignore:
Timestamp:
Nov 3, 2008 11:37:26 PM (12 years ago)
Author:
pbelotti
Message:

new set of test files

File:
1 edited

Legend:

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

    r12 r13  
    3636
    3737using namespace Bonmin;
     38
     39// the maximum difference between a printed optimum and a CouNumber
     40#define PRINTED_PRECISION 1e-5
    3841
    3942int main (int argc, char *argv[])
     
    98101      double opt = bb.model (). getBestPossibleObjValue ();
    99102
    100       printf ("Test on %-40s: %s\n", cp ? cp -> problemName ().c_str () : "unknown",
     103      printf ("Global Optimum Test on %-40s %s\n",
     104              cp ? cp -> problemName ().c_str () : "unknown",
    101105              (fabs (opt - global_opt) /
    102                (1. + CoinMax (fabs (opt), fabs (global_opt))) < COUENNE_EPS) ?
    103               (char *) "OK", (char *) "FAILED");
     106               (1. + CoinMax (fabs (opt), fabs (global_opt))) < PRINTED_PRECISION) ?
     107              (char *) "OK" : (char *) "FAILED");
     108              //opt, global_opt,
     109              //fabs (opt - global_opt));
    104110
    105111    } else // good old statistics
Note: See TracChangeset for help on using the changeset viewer.