Changeset 945 for trunk


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

generateCuts in Cgl >= 0.58 will not be const anymore

Location:
trunk/Couenne/src
Files:
14 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
  • trunk/Couenne/src/convex/CouenneCutGenerator.hpp

    r771 r945  
    1515
    1616#include "BonOaDecBase.hpp"
     17#include "CglConfig.h"
    1718#include "CglCutGenerator.hpp"
    1819#include "OsiRowCut.hpp"
     
    155156  void generateCuts (const OsiSolverInterface &,
    156157                     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  ;
    158163
    159164  /// create cut and check violation. Insert and return status
  • trunk/Couenne/src/convex/generateCuts.cpp

    r858 r945  
    9494void CouenneCutGenerator::generateCuts (const OsiSolverInterface &si,
    9595                                        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  {
    97101
    98102  // if si.lb(objInd) > cutoff,
  • trunk/Couenne/src/cut/crossconv/CouenneCrossConv.hpp

    r605 r945  
    1414#include "BonRegisteredOptions.hpp"
    1515
     16#include "CglConfig.h"
    1617#include "CglCutGenerator.hpp"
    1718#include "OsiRowCut.hpp"
     
    158159    virtual void generateCuts (const OsiSolverInterface &,
    159160                       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    ;
    161166
    162167    /// Add list of options to be read from file
  • trunk/Couenne/src/cut/crossconv/CrossConvGenCuts.cpp

    r490 r945  
    1717void CouenneCrossConv::generateCuts (const OsiSolverInterface &,
    1818                                     OsiCuts &,
    19                                      const CglTreeInfo) const {
     19                                     const CglTreeInfo)
     20#if CGL_VERSION_MAJOR == 0 && CGL_VERSION_MINOR <= 57
     21   const
     22#endif
     23{
    2024
    2125}
  • trunk/Couenne/src/cut/sdpcuts/CouenneSdpCuts.hpp

    r936 r945  
    1212#define CouenneSdpCuts_hpp
    1313
     14#include "CglConfig.h"
    1415#include "CglCutGenerator.hpp"
    1516#include "BonRegisteredOptions.hpp"
     
    7879    virtual void generateCuts (const OsiSolverInterface &,
    7980                               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    ;
    8186
    8287    /// Add list of options to be read from file
  • trunk/Couenne/src/cut/sdpcuts/CutGen.cpp

    r939 r945  
    3939// sdpcut separator -- all minors
    4040void 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  {
    4246
    4347  // only at root node once
  • trunk/Couenne/src/disjunctive/CouenneDisjCuts.hpp

    r490 r945  
    1515
    1616#include "OsiSolverInterface.hpp"
     17#include "CglConfig.h"
    1718#include "CglCutGenerator.hpp"
    1819#include "BonOsiTMINLPInterface.hpp"
     
    118119  void generateCuts (const OsiSolverInterface &,
    119120                     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  ;
    121126
    122127  /// Add list of options to be read from file
  • trunk/Couenne/src/disjunctive/generateDisjCuts.cpp

    r908 r945  
    2323void CouenneDisjCuts::generateCuts (const OsiSolverInterface &si,
    2424                                    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{
    2630
    2731  // 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.