Cbc
2.9.9
src
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
"
22
class
CbcFixVariable
:
public
CbcConsequence
{
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
:
53
int
numberStates_
;
55
int
*
states_
;
57
int
*
startLower_
;
59
int
*
startUpper_
;
61
double
*
newBound_
;
63
int
*
variable_
;
64
};
65
66
#endif
67
CbcConsequence
Abstract base class for consequent bounds.
Definition:
CbcConsequence.hpp:22
CbcFixVariable::operator=
CbcFixVariable & operator=(const CbcFixVariable &rhs)
CbcFixVariable::startLower_
int * startLower_
Start of information for each state (setting new lower)
Definition:
CbcFixVariable.hpp:57
CbcFixVariable::newBound_
double * newBound_
For each variable new bounds.
Definition:
CbcFixVariable.hpp:61
CbcFixVariable::startUpper_
int * startUpper_
Start of information for each state (setting new upper)
Definition:
CbcFixVariable.hpp:59
CbcFixVariable::CbcFixVariable
CbcFixVariable()
CbcFixVariable::CbcFixVariable
CbcFixVariable(const CbcFixVariable &rhs)
CbcFixVariable::clone
virtual CbcConsequence * clone() const
Clone.
CbcFixVariable
Class for consequent bounds.
Definition:
CbcFixVariable.hpp:22
CbcFixVariable::numberStates_
int numberStates_
Number of states.
Definition:
CbcFixVariable.hpp:53
CbcBranchBase.hpp
CbcFixVariable::states_
int * states_
Values of integers for various states.
Definition:
CbcFixVariable.hpp:55
CbcFixVariable::CbcFixVariable
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::variable_
int * variable_
Variable.
Definition:
CbcFixVariable.hpp:63
CbcFixVariable::applyToSolver
virtual void applyToSolver(OsiSolverInterface *solver, int state) const
Apply to an LP solver.
CbcFixVariable::~CbcFixVariable
virtual ~CbcFixVariable()
Destructor.
Generated by
1.8.20