Cbc  2.10.5
 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 2465 2019-01-03 19:26:52Z unxusr $
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  // Default Constructor
27 
28  // One useful Constructor
29  CbcFixVariable(int numberStates, const int *states, const int *numberNewLower, const int **newLowerValue,
30  const int **lowerColumn,
31  const int *numberNewUpper, const int **newUpperValue,
32  const int **upperColumn);
33 
34  // Copy constructor
35  CbcFixVariable(const CbcFixVariable &rhs);
36 
37  // Assignment operator
39 
41  virtual CbcConsequence *clone() const;
42 
44  virtual ~CbcFixVariable();
45 
48  virtual void applyToSolver(OsiSolverInterface *solver, int state) const;
49 
50 protected:
54  int *states_;
60  double *newBound_;
62  int *variable_;
63 };
64 
65 #endif
66 
67 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
68 */
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.