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);
56 virtual int solution(
double &solutionValue,
double *betterSolution, OsiCuts & cs)
58 return solution(solutionValue, betterSolution);
88 void round(
const double integerTolerance,
89 const double primalTolerance,
int numberRows_
Number of rows.
virtual CbcHeuristic * clone() const
Virtual constructor.
std::vector< std::pair< int, int > > * col_and_jac_g_
Jacobian of g.
~RoundingFPump()
Destructor.
int enableAdvanced_
To enable advanced unstable stuff.
HeuristicFPump()
Default constructor.
int objective_norm_
Norm of the objective function - either 1 or 2.
void setSetup(BonminSetup *setup)
Change setup used for heuristic.
int numberColumns_
Number of columns.
void round(const double integerTolerance, const double primalTolerance, double *solution)
Rounds the solution.
TMINLP2TNLP * minlp_
Pointer to problem.
HeuristicFPump & operator=(const HeuristicFPump &rhs)
Assignment operator.
~HeuristicFPump()
Destructor.
static void registerOptions(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
Register the options for this heuristic.
void Initialize(Ipopt::SmartPtr< Ipopt::OptionsList > options)
Initiaize using passed options.
virtual int solution(double &solutionValue, double *betterSolution, OsiCuts &cs)
Performs heuristic with add cust.
void gutsOfConstructor()
gutsOfConstructor
Ipopt::SmartPtr< Ipopt::OptionsList > options()
Acces list of Options.
virtual int solution(double &solutionValue, double *betterSolution)
Performs heuristic.
This is an adapter class that converts a TMINLP to a TNLP to be solved by Ipopt.
BonminSetup * setup_
Setup to use for local searches (will make copies).
virtual void resetModel(CbcModel *model)
Resets stuff if model changes.
RoundingFPump(TMINLP2TNLP *minlp)
Default constructor.