Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbcFixVariable.hpp
Go to the documentation of this file.
1 // $Id: CbcFixVariable.hpp 1899 2013-04-09 18:12:08Z stefan $
2 // Copyright (C) 2002, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5 
6 // Edwin 11/10/2009-- carved out of CbcBranchActual
7 
8 #ifndef CbcFixVariable_H
9 #define CbcFixVariable_H
10 
11 #include "CbcBranchBase.hpp"
23 
24 public:
25 
26  // Default Constructor
27  CbcFixVariable ();
28 
29  // One useful Constructor
30  CbcFixVariable (int numberStates, const int * states, const int * numberNewLower, const int ** newLowerValue,
31  const int ** lowerColumn,
32  const int * numberNewUpper, const int ** newUpperValue,
33  const int ** upperColumn);
34 
35  // Copy constructor
36  CbcFixVariable ( const CbcFixVariable & rhs);
37 
38  // Assignment operator
39  CbcFixVariable & operator=( const CbcFixVariable & rhs);
40 
42  virtual CbcConsequence * clone() const;
43 
45  virtual ~CbcFixVariable ();
46 
49  virtual void applyToSolver(OsiSolverInterface * solver, int state) const;
50 
51 protected:
55  int * states_;
57  int * startLower_;
59  int * startUpper_;
61  double * newBound_;
63  int * variable_;
64 };
65 
66 #endif
67 
int * startLower_
Start of information for each state (setting new lower)
double * newBound_
For each variable new bounds.
Abstract Base Class for describing an interface to a solver.
int * startUpper_
Start of information for each state (setting new upper)
virtual void applyToSolver(OsiSolverInterface *solver, int state) const
Apply to an LP solver.
Abstract base class for consequent bounds.
int * variable_
Variable.
virtual CbcConsequence * clone() const
Clone.
int numberStates_
Number of states.
virtual ~CbcFixVariable()
Destructor.
int * states_
Values of integers for various states.
CbcFixVariable & operator=(const CbcFixVariable &rhs)
Class for consequent bounds.