Changeset 1898 for trunk/Cbc/examples/CbcBranchLink.cpp
 Timestamp:
 Apr 9, 2013 2:06:04 PM (6 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Cbc/examples/CbcBranchLink.cpp
r1574 r1898 4 4 // This code is licensed under the terms of the Eclipse Public License (EPL). 5 5 6 #if defined(_MSC_VER)7 // Turn off compiler warning about long names8 # pragma warning(disable:4786)9 #endif10 6 #include <cassert> 11 7 #include <cmath> … … 13 9 //#define CBC_DEBUG 14 10 11 #include "CoinPragma.hpp" 15 12 #include "OsiSolverInterface.hpp" 16 13 #include "CbcModel.hpp" … … 52 49 // weights must be increasing 53 50 int i; 54 double last=COIN_DBL_MAX; 55 for (i=0;i<numberMembers_;i++) { 56 assert (weights_[i]>last+1.0e12); 57 last=weights_[i]; 58 } 51 for (i=0;i<numberMembers_;i++) 52 assert (i == 0  weights_[i]>weights_[i1]+1.0e12); 59 53 for (i=0;i<numberMembers_*numberLinks_;i++) { 60 54 which_[i]=first+i; … … 86 80 // weights must be increasing 87 81 int i; 88 double last=COIN_DBL_MAX; 89 for (i=0;i<numberMembers_;i++) { 90 assert (weights_[i]>last+1.0e12); 91 last=weights_[i]; 92 } 82 for (i=0;i<numberMembers_;i++) 83 assert (i == 0  weights_[i]>weights_[i1]+1.0e12); 93 84 for (i=0;i<numberMembers_*numberLinks_;i++) { 94 85 which_[i]= which[i];
Note: See TracChangeset
for help on using the changeset viewer.