Cbc 2.10.5
Loading...
Searching...
No Matches
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
24public:
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
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
50protected:
54 int *states_;
60 double *newBound_;
63};
64
65#endif
66
67/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
68*/
Abstract base class for consequent bounds.
Class for consequent bounds.
int numberStates_
Number of states.
virtual ~CbcFixVariable()
Destructor.
CbcFixVariable & operator=(const CbcFixVariable &rhs)
CbcFixVariable(int numberStates, const int *states, const int *numberNewLower, const int **newLowerValue, const int **lowerColumn, const int *numberNewUpper, const int **newUpperValue, const int **upperColumn)
CbcFixVariable(const CbcFixVariable &rhs)
int * variable_
Variable.
int * states_
Values of integers for various states.
double * newBound_
For each variable new bounds.
int * startUpper_
Start of information for each state (setting new upper)
virtual CbcConsequence * clone() const
Clone.
int * startLower_
Start of information for each state (setting new lower)
virtual void applyToSolver(OsiSolverInterface *solver, int state) const
Apply to an LP solver.