CbcSolver3.hpp
Go to the documentation of this file.
1 // Copyright (C) 2004, International Business Machines
2 // Corporation and others. All Rights Reserved.
3 
4 #ifndef CbcSolver3_H
5 #define CbcSolver3_H
6 
7 #include "OsiClpSolverInterface.hpp"
8 class CbcModel;
9 //#############################################################################
10 
16 class CbcSolver3 : public OsiClpSolverInterface {
17 
18 public:
19  //---------------------------------------------------------------------------
22  virtual void initialSolve();
24 
26  virtual void resolve();
27 
29 
30 
33  CbcSolver3 ();
35 
37  virtual OsiSolverInterface * clone(bool CopyData=true) const;
38 
40  CbcSolver3 (const CbcSolver3 &);
41 
43  CbcSolver3 & operator=(const CbcSolver3& rhs);
44 
46  virtual ~CbcSolver3 ();
47 
49 
50 
53  void initialize(CbcModel * model, const char * keep);
56  inline const int * when() const
57  { return node_;}
59  inline int getMemory() const
60  { return memory_;}
62  inline int getCount() const
63  { return count_;}
65  inline void setMemory(int value)
66  { memory_=value;}
68  inline void setBelieveInfeasible(bool yesNo)
69  { believeInfeasible_=yesNo;}
71  inline void setAlgorithm(int value)
72  { algorithm_=value;}
74  inline void setNested(double value)
75  { nestedSearch_=value;}
77  inline int getAlgorithm() const
78  { return algorithm_;}
80  inline double getNested() const
81  { return nestedSearch_;}
83 
84  //---------------------------------------------------------------------------
85 
86 private:
87 
90  double nestedSearch_;
93  int * node_;
95  int * howMany_;
99  int count_;
101  int memory_;
107 };
108 
109 #endif