Ignore:
Timestamp:
Apr 6, 2013 4:25:21 PM (8 years ago)
Author:
stefan
Message:

generateCuts in Cgl >= 0.58 will not be const anymore

Location:
trunk/Couenne/src/bound_tightening
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Couenne/src/bound_tightening/CouenneAggrProbing.cpp

    r793 r945  
    5252void CouenneAggrProbing::registerOptions(Ipopt::SmartPtr <Bonmin::RegisteredOptions> roptions) {
    5353  // 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)
    6054}
    6155
  • trunk/Couenne/src/bound_tightening/CouenneAggrProbing.hpp

    r490 r945  
    1515
    1616#include "BonOaDecBase.hpp"
     17#include "CglConfig.h"
    1718#include "CglCutGenerator.hpp"
    1819#include "OsiColCut.hpp"
     
    5556    void generateCuts(const OsiSolverInterface & solver,
    5657                      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    { }
    5863
    5964    /// Probe one variable (try to tigthen the lower or the upper
  • trunk/Couenne/src/bound_tightening/CouenneFixPoint.hpp

    r786 r945  
    1515
    1616#include "BonOaDecBase.hpp"
     17#include "CglConfig.h"
    1718#include "CglCutGenerator.hpp"
    1819#include "OsiRowCut.hpp"
     
    4849    void generateCuts (const OsiSolverInterface &,
    4950                       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    ;
    5156
    5257    /// Add list of options to be read from file
  • trunk/Couenne/src/bound_tightening/FixPointGenCuts.cpp

    r788 r945  
    2828void CouenneFixPoint::generateCuts (const OsiSolverInterface &si,
    2929                                    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  {
    3135
    3236  /// Only run this if the latest FBBT terminated on the iteration
  • trunk/Couenne/src/bound_tightening/twoImpliedBT/CouenneTwoImplied.hpp

    r577 r945  
    1414#include "BonRegisteredOptions.hpp"
    1515
     16#include "CglConfig.h"
    1617#include "CglCutGenerator.hpp"
    1718#include "OsiRowCut.hpp"
     
    193194    void generateCuts (const OsiSolverInterface &,
    194195                       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    ;
    196201
    197202    /// Add list of options to be read from file
  • trunk/Couenne/src/bound_tightening/twoImpliedBT/TwoImpliedGenCuts.cpp

    r939 r945  
    5959void CouenneTwoImplied::generateCuts (const OsiSolverInterface &si,
    6060                                      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  {
    6266
    6367  // don't perform this is cs has been added an infeasible cut (a
Note: See TracChangeset for help on using the changeset viewer.