Couenne 0.5.8
Loading...
Searching...
No Matches
BonInitHeuristic.hpp
Go to the documentation of this file.
1/* $Id: BonInitHeuristic.hpp 488 2011-01-10 17:06:41Z pbelotti $ */
2// (C) Copyright International Business Machines Corporation 2007
3// All Rights Reserved.
4// This code is published under the Eclipse Public License (EPL).
5//
6// Authors :
7// Andreas Waechter, International Business Machines Corporation
8//
9// Date : 12/07/2007
10
11#ifndef BonInitHeuristic_HPP
12#define BonInitHeuristic_HPP
13
14#include "CbcHeuristic.hpp"
15#include "CouenneProblem.hpp"
16
17namespace Couenne {
18
23
25
26 public:
27
29 InitHeuristic(double objValue, const double* sol, CouenneProblem& cp);
32
34 virtual ~InitHeuristic();
35
37 virtual CbcHeuristic * clone() const;
38
41
42 virtual void resetModel(CbcModel * model){}
48 virtual int solution(double & objectiveValue, double * newSolution);
49
50 private:
51
54
56 double objValue_;
57
59 double* sol_;
60
62 int nVars_;
63 };
64
65}
66
67#endif
68
Class for MINLP problems with symbolic information.
virtual CbcHeuristic * clone() const
Clone.
InitHeuristic(double objValue, const double *sol, CouenneProblem &cp)
Constructor with model and Ipopt problems.
virtual int solution(double &objectiveValue, double *newSolution)
Run heuristic, return 1 if a better solution than the one passed is found and 0 otherwise.
virtual void resetModel(CbcModel *model)
InitHeuristic & operator=(const InitHeuristic &rhs)
Assignment operator.
InitHeuristic(const InitHeuristic &other)
Copy constructor.
virtual ~InitHeuristic()
Destructor.
general include file for different compilers