Changeset 945 for trunk/Couenne
- Timestamp:
- Apr 6, 2013 4:25:21 PM (8 years ago)
- Location:
- trunk/Couenne/src
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Couenne/src/bound_tightening/CouenneAggrProbing.cpp
r793 r945 52 52 void CouenneAggrProbing::registerOptions(Ipopt::SmartPtr <Bonmin::RegisteredOptions> roptions) { 53 53 // Nothing for the moment, but will be added later as needed 54 }55 56 void CouenneAggrProbing::generateCuts(const OsiSolverInterface& solver,57 OsiCuts& cuts,58 const CglTreeInfo info) const {59 // Empty for the moment (cannot be used automatically in Branch-and-Bound)60 54 } 61 55 -
trunk/Couenne/src/bound_tightening/CouenneAggrProbing.hpp
r490 r945 15 15 16 16 #include "BonOaDecBase.hpp" 17 #include "CglConfig.h" 17 18 #include "CglCutGenerator.hpp" 18 19 #include "OsiColCut.hpp" … … 55 56 void generateCuts(const OsiSolverInterface & solver, 56 57 OsiCuts& cuts, 57 const CglTreeInfo = CglTreeInfo ()) const; 58 const CglTreeInfo = CglTreeInfo ()) 59 #if CGL_VERSION_MAJOR == 0 && CGL_VERSION_MINOR <= 57 60 const 61 #endif 62 { } 58 63 59 64 /// Probe one variable (try to tigthen the lower or the upper -
trunk/Couenne/src/bound_tightening/CouenneFixPoint.hpp
r786 r945 15 15 16 16 #include "BonOaDecBase.hpp" 17 #include "CglConfig.h" 17 18 #include "CglCutGenerator.hpp" 18 19 #include "OsiRowCut.hpp" … … 48 49 void generateCuts (const OsiSolverInterface &, 49 50 OsiCuts &, 50 const CglTreeInfo = CglTreeInfo ()) const; 51 const CglTreeInfo = CglTreeInfo ()) 52 #if CGL_VERSION_MAJOR == 0 && CGL_VERSION_MINOR <= 57 53 const 54 #endif 55 ; 51 56 52 57 /// Add list of options to be read from file -
trunk/Couenne/src/bound_tightening/FixPointGenCuts.cpp
r788 r945 28 28 void CouenneFixPoint::generateCuts (const OsiSolverInterface &si, 29 29 OsiCuts &cs, 30 const CglTreeInfo treeInfo) const { 30 const CglTreeInfo treeInfo) 31 #if CGL_VERSION_MAJOR == 0 && CGL_VERSION_MINOR <= 57 32 const 33 #endif 34 { 31 35 32 36 /// Only run this if the latest FBBT terminated on the iteration -
trunk/Couenne/src/bound_tightening/twoImpliedBT/CouenneTwoImplied.hpp
r577 r945 14 14 #include "BonRegisteredOptions.hpp" 15 15 16 #include "CglConfig.h" 16 17 #include "CglCutGenerator.hpp" 17 18 #include "OsiRowCut.hpp" … … 193 194 void generateCuts (const OsiSolverInterface &, 194 195 OsiCuts &, 195 const CglTreeInfo = CglTreeInfo ()) const; 196 const CglTreeInfo = CglTreeInfo ()) 197 #if CGL_VERSION_MAJOR == 0 && CGL_VERSION_MINOR <= 57 198 const 199 #endif 200 ; 196 201 197 202 /// Add list of options to be read from file -
trunk/Couenne/src/bound_tightening/twoImpliedBT/TwoImpliedGenCuts.cpp
r939 r945 59 59 void CouenneTwoImplied::generateCuts (const OsiSolverInterface &si, 60 60 OsiCuts &cs, 61 const CglTreeInfo info) const { 61 const CglTreeInfo info) 62 #if CGL_VERSION_MAJOR == 0 && CGL_VERSION_MINOR <= 57 63 const 64 #endif 65 { 62 66 63 67 // don't perform this is cs has been added an infeasible cut (a -
trunk/Couenne/src/convex/CouenneCutGenerator.hpp
r771 r945 15 15 16 16 #include "BonOaDecBase.hpp" 17 #include "CglConfig.h" 17 18 #include "CglCutGenerator.hpp" 18 19 #include "OsiRowCut.hpp" … … 155 156 void generateCuts (const OsiSolverInterface &, 156 157 OsiCuts &, 157 const CglTreeInfo = CglTreeInfo ()) const; 158 const CglTreeInfo = CglTreeInfo ()) 159 #if CGL_VERSION_MAJOR == 0 && CGL_VERSION_MINOR <= 57 160 const 161 #endif 162 ; 158 163 159 164 /// create cut and check violation. Insert and return status -
trunk/Couenne/src/convex/generateCuts.cpp
r858 r945 94 94 void CouenneCutGenerator::generateCuts (const OsiSolverInterface &si, 95 95 OsiCuts &cs, 96 const CglTreeInfo info) const { 96 const CglTreeInfo info) 97 #if CGL_VERSION_MAJOR == 0 && CGL_VERSION_MINOR <= 57 98 const 99 #endif 100 { 97 101 98 102 // if si.lb(objInd) > cutoff, -
trunk/Couenne/src/cut/crossconv/CouenneCrossConv.hpp
r605 r945 14 14 #include "BonRegisteredOptions.hpp" 15 15 16 #include "CglConfig.h" 16 17 #include "CglCutGenerator.hpp" 17 18 #include "OsiRowCut.hpp" … … 158 159 virtual void generateCuts (const OsiSolverInterface &, 159 160 OsiCuts &, 160 const CglTreeInfo = CglTreeInfo ()) const; 161 const CglTreeInfo = CglTreeInfo ()) 162 #if CGL_VERSION_MAJOR == 0 && CGL_VERSION_MINOR <= 57 163 const 164 #endif 165 ; 161 166 162 167 /// Add list of options to be read from file -
trunk/Couenne/src/cut/crossconv/CrossConvGenCuts.cpp
r490 r945 17 17 void CouenneCrossConv::generateCuts (const OsiSolverInterface &, 18 18 OsiCuts &, 19 const CglTreeInfo) const { 19 const CglTreeInfo) 20 #if CGL_VERSION_MAJOR == 0 && CGL_VERSION_MINOR <= 57 21 const 22 #endif 23 { 20 24 21 25 } -
trunk/Couenne/src/cut/sdpcuts/CouenneSdpCuts.hpp
r936 r945 12 12 #define CouenneSdpCuts_hpp 13 13 14 #include "CglConfig.h" 14 15 #include "CglCutGenerator.hpp" 15 16 #include "BonRegisteredOptions.hpp" … … 78 79 virtual void generateCuts (const OsiSolverInterface &, 79 80 OsiCuts &, 80 const CglTreeInfo = CglTreeInfo ()) const; 81 const CglTreeInfo = CglTreeInfo ()) 82 #if CGL_VERSION_MAJOR == 0 && CGL_VERSION_MINOR <= 57 83 const 84 #endif 85 ; 81 86 82 87 /// Add list of options to be read from file -
trunk/Couenne/src/cut/sdpcuts/CutGen.cpp
r939 r945 39 39 // sdpcut separator -- all minors 40 40 void CouenneSdpCuts::generateCuts (const OsiSolverInterface &si, OsiCuts &cs, 41 const CglTreeInfo info) const { 41 const CglTreeInfo info) 42 #if CGL_VERSION_MAJOR == 0 && CGL_VERSION_MINOR <= 57 43 const 44 #endif 45 { 42 46 43 47 // only at root node once -
trunk/Couenne/src/disjunctive/CouenneDisjCuts.hpp
r490 r945 15 15 16 16 #include "OsiSolverInterface.hpp" 17 #include "CglConfig.h" 17 18 #include "CglCutGenerator.hpp" 18 19 #include "BonOsiTMINLPInterface.hpp" … … 118 119 void generateCuts (const OsiSolverInterface &, 119 120 OsiCuts &, 120 const CglTreeInfo = CglTreeInfo ()) const; 121 const CglTreeInfo = CglTreeInfo ()) 122 #if CGL_VERSION_MAJOR == 0 && CGL_VERSION_MINOR <= 57 123 const 124 #endif 125 ; 121 126 122 127 /// Add list of options to be read from file -
trunk/Couenne/src/disjunctive/generateDisjCuts.cpp
r908 r945 23 23 void CouenneDisjCuts::generateCuts (const OsiSolverInterface &si, 24 24 OsiCuts &cs, 25 const CglTreeInfo info) const { 25 const CglTreeInfo info) 26 #if CGL_VERSION_MAJOR == 0 && CGL_VERSION_MINOR <= 57 27 const 28 #endif 29 { 26 30 27 31 // Check if cs contains only one cut and if it is of the form 1 <=
Note: See TracChangeset
for help on using the changeset viewer.