CbcFixVariable.hpp
Go to the documentation of this file.
1 // Edwin 11/10/2009-- carved out of CbcBranchActual
2 #ifndef CbcFixVariable_H
3 #define CbcFixVariable_H
4 
5 #include "CbcBranchBase.hpp"
16 class CbcFixVariable : public CbcConsequence {
17 
18 public:
19 
20  // Default Constructor
21  CbcFixVariable ();
22 
23  // One useful Constructor
24  CbcFixVariable (int numberStates, const int * states, const int * numberNewLower, const int ** newLowerValue,
25  const int ** lowerColumn,
26  const int * numberNewUpper, const int ** newUpperValue,
27  const int ** upperColumn);
28 
29  // Copy constructor
30  CbcFixVariable ( const CbcFixVariable & rhs);
31 
32  // Assignment operator
33  CbcFixVariable & operator=( const CbcFixVariable & rhs);
34 
36  virtual CbcConsequence * clone() const;
37 
39  virtual ~CbcFixVariable ();
40 
43  virtual void applyToSolver(OsiSolverInterface * solver, int state) const;
44 
45 protected:
47  int numberStates_;
49  int * states_;
51  int * startLower_;
53  int * startUpper_;
55  double * newBound_;
57  int * variable_;
58 };
59 
60 #endif
61