10 #ifndef BonHeuristicFPump_HPP 11 #define BonHeuristicFPump_HPP 14 #include "CbcHeuristic.hpp" 37 virtual CbcHeuristic *
clone()
const{
53 virtual int solution(
double &solutionValue,
double *betterSolution);
58 return solution(solutionValue, betterSolution);
88 void round(
const double integerTolerance,
89 const double primalTolerance,
94 void gutsOfConstructor();
106 std::vector<std::pair<int, int> >* col_and_jac_g_;
virtual void resetModel(CbcModel *model)
Resets stuff if model changes.
RoundingFPump(TMINLP2TNLP *minlp)
Default constructor.
HeuristicFPump()
Default constructor.
(C) Copyright International Business Machines Corporation 2007
Ipopt::SmartPtr< Ipopt::OptionsList > options()
Acces list of Options.
void Initialize(Ipopt::SmartPtr< Ipopt::OptionsList > options)
Initiaize using passed options.
virtual CbcHeuristic * clone() const
Virtual constructor.
void round(const double integerTolerance, const double primalTolerance, double *solution)
Rounds the solution.
void setSetup(BonminSetup *setup)
Change setup used for heuristic.
This is an adapter class that converts a TMINLP to a TNLP to be solved by Ipopt.
virtual int solution(double &solutionValue, double *betterSolution)
Performs heuristic.
~HeuristicFPump()
Destructor.
HeuristicFPump & operator=(const HeuristicFPump &rhs)
Assignment operator.
virtual int solution(double &solutionValue, double *betterSolution, OsiCuts &cs)
Performs heuristic with add cust.
static void registerOptions(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
Register the options for this heuristic.
~RoundingFPump()
Destructor.