GAMSlinks  0.4
GamsHeuristic.hpp
Go to the documentation of this file.
1 // Copyright (C) GAMS Development 2007
2 // All Rights Reserved.
3 // This code is published under the Common Public License.
4 //
5 // $Id: GamsHeuristic.hpp 374 2008-03-02 12:02:50Z stefan $
6 //
7 // Author: Stefan Vigerske
8 
9 #ifndef GAMSHEURISTIC_HPP_
10 #define GAMSHEURISTIC_HPP_
11 
12 #include "GAMSlinksConfig.h"
13 // from CoinUtils
14 #include "CoinPragma.hpp"
15 
16 #include "GamsBCH.hpp"
17 #include "CbcHeuristic.hpp"
18 #include "CbcModel.hpp"
19 
20 class GamsHeuristic : public CbcHeuristic {
21 private:
23 
24 
25 public:
26  GamsHeuristic(GamsBCH& bch_);
27 
28  CbcHeuristic* clone() const;
29 
30  void resetModel(CbcModel *model);
31 
36  int solution(double &objectiveValue, double *newSolution);
37 
38  using CbcHeuristic::solution;
39 };
40 
41 #endif /*GAMSHEURISTIC_HPP_*/
int solution(double &objectiveValue, double *newSolution)
Sets solution values if good, sets objective value.
GamsHeuristic(GamsBCH &bch_)
CbcHeuristic * clone() const
void resetModel(CbcModel *model)
Interface to GAMS BCH facility.
Definition: GamsBCH.hpp:24