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"
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:
49  int * states_;
51  int * startLower_;
53  int * startUpper_;
55  double * newBound_;
57  int * variable_;
58 };
59 
60 #endif
61 
int * startLower_
Start of information for each state (setting new lower)
int * startUpper_
Start of information for each state (setting new upper)
virtual ~CbcFixVariable()
Destructor.
Abstract base class for consequent bounds.
int numberStates_
Number of states.
CbcFixVariable & operator=(const CbcFixVariable &rhs)
int * states_
Values of integers for various states.
int * variable_
Variable.
virtual void applyToSolver(OsiSolverInterface *solver, int state) const
Apply to an LP solver.
Class for consequent bounds.
double * newBound_
For each variable new bounds.
virtual CbcConsequence * clone() const
Clone.