Changeset 424 for trunk/Couenne/src/main/BonCouenne.cpp
 Timestamp:
 Oct 18, 2010 4:20:06 PM (10 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Couenne/src/main/BonCouenne.cpp
r407 r424 47 47 #include "CouenneProblemElem.hpp" 48 48 #include "CouenneProblem.hpp" 49 #include "CouenneJournalist.hpp" 49 50 50 51 #include "config_couenne.h" … … 60 61 61 62 try { 62 63 printf ("\64 ====================================================================\n\65 Couenne\n\66 An OpenSource solver for Mixed Integer Nonlinear Optimization\n\67 Version: %s\n\68 Send questions/comments to %s\n\69 See http://www.coinor.org/Couenne for more information\n\70 ====================================================================\n",71 PACKAGE_VERSION,72 PACKAGE_BUGREPORT73 );74 63 75 64 Bonmin::Bab bb; … … 102 91 if (!couenne.InitializeCouenne (argv, p, NULL, ci, &bb)) 103 92 throw infeasible; 93 94 // initial printout 95 96 ConstJnlstPtr jnlst = couenne. couennePtr () > Jnlst (); 97 98 jnlst > Printf (J_INSUPPRESSIBLE, J_COUENNE, "Couenne %s  an OpenSource exact solver for MINLP\n", strcmp (PACKAGE_VERSION, "trunk") ? PACKAGE_VERSION : ""); 99 100 jnlst > Printf (J_ERROR, J_COUENNE, "\ 101 Mailing list: %s\n\ 102 Instructions: http://www.coinor.org/Couenne\n", 103 PACKAGE_BUGREPORT); 104 105 CouenneProblem *prob = couenne. couennePtr () > Problem (); 106 107 jnlst > Printf (J_ERROR, J_COUENNE, "\n\ 108 Loaded instance \"%s\"\n\ 109 Variables: %8d (%d integer)\n\ 110 Constraints: %8d\n\ 111 Auxiliaries: %8d\n\n", 112 prob > problemName ().c_str (), 113 prob > nOrigVars (), 114 prob > nOrigIntVars (), 115 prob > nOrigCons (), 116 prob > nVars ()  prob > nOrigVars ()); 104 117 105 118 double time_start = CoinCpuTime(); … … 118 131 ////////////////////////////////// 119 132 133 jnlst > Printf (J_ERROR, J_COUENNE, "Starting branchandbound\n"); 120 134 bb (couenne); // do branch and bound 121 135 … … 151 165 double global_opt; 152 166 couenne.options () > GetNumericValue ("couenne_check", global_opt, "couenne."); 167 168 jnlst > Printf (J_ERROR, J_COUENNE, "\n\ 169 Linearization cuts added at root node: %8d\n\ 170 Linearization cuts added in total %8d (separation time: %gs)\n\ 171 Total solving time: %8gs (%gs in branchandbound)\n\ 172 Lower bound: %10g\n\ 173 Upper bound: %10g (gap: %.2f%%)\n\ 174 Branchandbound nodes: %8d\n\n", 175 nr, nt, st, 176 CoinCpuTime ()  time_start, 177 cg ? (CoinCpuTime ()  cg > rootTime ()) : CoinCpuTime (), 178 bb.model (). getBestPossibleObjValue (), 179 bb.model (). getObjValue (), 180 100. * (bb.model (). getObjValue ()  181 bb.model (). getBestPossibleObjValue ()) / (1. + fabs (bb.model (). getBestPossibleObjValue ())), 182 bb.numNodes ()); 153 183 154 184 if (global_opt < COUENNE_INFINITY) { // some value found in couenne.opt
Note: See TracChangeset
for help on using the changeset viewer.