Ignore:
Timestamp:
Jun 14, 2016 10:39:54 AM (3 years ago)
Author:
forrest
Message:

allow heuristics to see if integers are 'optional'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcHeuristic.hpp

    r2094 r2280  
    1717
    1818class CbcModel;
    19 
     19#ifdef COIN_HAS_CLP
     20#include "OsiClpSolverInterface.hpp"
     21#endif
    2022//#############################################################################
    2123
     
    302304        return numCouldRun_;
    303305    }
     306    /// Is it integer for heuristics?
     307#ifdef COIN_HAS_CLP
     308  inline bool isHeuristicInteger(const OsiSolverInterface * solver, int iColumn) const
     309  {
     310    const OsiClpSolverInterface * clpSolver
     311    = dynamic_cast<const OsiClpSolverInterface *> (solver);
     312    if (clpSolver)
     313        return clpSolver->isHeuristicInteger(iColumn);
     314      else
     315        return solver->isInteger(iColumn);
     316  }
     317#else
     318  inline bool isHeuristicInteger(const OsiSolverInterface * solver, int iColumn)
     319  { return solver->isInteger(iColumn);}
     320#endif
    304321    /*! \brief Clone, but ...
    305322
Note: See TracChangeset for help on using the changeset viewer.