Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
CbcFixVariable Class Reference

Class for consequent bounds. More...

#include <CbcFixVariable.hpp>

+ Inheritance diagram for CbcFixVariable:
+ Collaboration diagram for CbcFixVariable:

Public Member Functions

 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 (const CbcFixVariable &rhs)
CbcFixVariableoperator= (const CbcFixVariable &rhs)
virtual CbcConsequenceclone () const
 Clone. More...
virtual ~CbcFixVariable ()
 Destructor. More...
virtual void applyToSolver (OsiSolverInterface *solver, int state) const
 Apply to an LP solver. More...
- Public Member Functions inherited from CbcConsequence
 CbcConsequence ()
 CbcConsequence (const CbcConsequence &rhs)
CbcConsequenceoperator= (const CbcConsequence &rhs)
virtual ~CbcConsequence ()
 Destructor. More...

Protected Attributes

int numberStates_
 Number of states. More...
int * states_
 Values of integers for various states. More...
int * startLower_
 Start of information for each state (setting new lower) More...
int * startUpper_
 Start of information for each state (setting new upper) More...
double * newBound_
 For each variable new bounds. More...
int * variable_
 Variable. More...

Detailed Description

Class for consequent bounds.

When a variable is branched on it normally interacts with other variables by means of equations. There are cases where we want to step outside LP and do something more directly e.g. fix bounds. This class is for that.

A state of -9999 means at LB, +9999 means at UB, others mean if fixed to that value.

Definition at line 22 of file CbcFixVariable.hpp.

Constructor & Destructor Documentation

CbcFixVariable::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::CbcFixVariable ( const CbcFixVariable rhs)
virtual CbcFixVariable::~CbcFixVariable ( )


Member Function Documentation

CbcFixVariable& CbcFixVariable::operator= ( const CbcFixVariable rhs)
virtual CbcConsequence* CbcFixVariable::clone ( ) const


Implements CbcConsequence.

virtual void CbcFixVariable::applyToSolver ( OsiSolverInterface solver,
int  state 
) const

Apply to an LP solver.

Action depends on state

Implements CbcConsequence.

Member Data Documentation

int CbcFixVariable::numberStates_

Number of states.

Definition at line 53 of file CbcFixVariable.hpp.

int* CbcFixVariable::states_

Values of integers for various states.

Definition at line 55 of file CbcFixVariable.hpp.

int* CbcFixVariable::startLower_

Start of information for each state (setting new lower)

Definition at line 57 of file CbcFixVariable.hpp.

int* CbcFixVariable::startUpper_

Start of information for each state (setting new upper)

Definition at line 59 of file CbcFixVariable.hpp.

double* CbcFixVariable::newBound_

For each variable new bounds.

Definition at line 61 of file CbcFixVariable.hpp.

int* CbcFixVariable::variable_


Definition at line 63 of file CbcFixVariable.hpp.

The documentation for this class was generated from the following file: