CbcSOS Class Reference

Define Special Ordered Sets of type 1 and 2. More...

#include <CbcBranchActual.hpp>

Inheritance diagram for CbcSOS:

Inheritance graph
[legend]
Collaboration diagram for CbcSOS:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CbcSOS ()
 CbcSOS (CbcModel *model, int numberMembers, const int *which, const double *weights, int identifier, int type=1)
 Useful constructor - which are indices and weights are also given.
 CbcSOS (const CbcSOS &)
virtual CbcObjectclone () const
 Clone.
CbcSOSoperator= (const CbcSOS &rhs)
 ~CbcSOS ()
virtual double infeasibility (int &preferredWay) const
 Infeasibility - large is 0.5.
virtual void feasibleRegion ()
 This looks at solution and sets bounds to contain solution.
virtual CbcBranchingObjectcreateBranch (int way)
 Creates a branching object.
virtual OsiSolverBranchsolverBranch () const
 Create an OsiSolverBranch object.
virtual void redoSequenceEtc (CbcModel *model, int numberColumns, const int *originalColumns)
 Redoes data when sequence numbers change.
int numberMembers () const
 Number of members.
const int * members () const
 Members (indices in range 0 ... numberColumns-1).
int sosType () const
 SOS type.
const double * weights () const
 Array of weights.

Private Attributes

int * members_
 Members (indices in range 0 ... numberColumns-1).
double * weights_
 Weights.
int numberMembers_
 Number of members.
int sosType_
 SOS type.

Detailed Description

Define Special Ordered Sets of type 1 and 2.

These do not have to be integer - so do not appear in lists of integers.

which_ points directly to columns of matrix

Definition at line 97 of file CbcBranchActual.hpp.


Constructor & Destructor Documentation

CbcSOS::CbcSOS (  ) 

CbcSOS::CbcSOS ( CbcModel model,
int  numberMembers,
const int *  which,
const double *  weights,
int  identifier,
int  type = 1 
)

Useful constructor - which are indices and weights are also given.

If null then 0,1,2.. type is SOS type

CbcSOS::CbcSOS ( const CbcSOS  ) 

CbcSOS::~CbcSOS (  ) 


Member Function Documentation

virtual CbcObject* CbcSOS::clone (  )  const [virtual]

Clone.

Implements CbcObject.

CbcSOS& CbcSOS::operator= ( const CbcSOS rhs  ) 

virtual double CbcSOS::infeasibility ( int &  preferredWay  )  const [virtual]

Infeasibility - large is 0.5.

Implements CbcObject.

virtual void CbcSOS::feasibleRegion (  )  [virtual]

This looks at solution and sets bounds to contain solution.

Implements CbcObject.

virtual CbcBranchingObject* CbcSOS::createBranch ( int  way  )  [virtual]

Creates a branching object.

Implements CbcObject.

virtual OsiSolverBranch* CbcSOS::solverBranch (  )  const [virtual]

Create an OsiSolverBranch object.

This returns NULL if branch not represented by bound changes

Reimplemented from CbcObject.

virtual void CbcSOS::redoSequenceEtc ( CbcModel model,
int  numberColumns,
const int *  originalColumns 
) [virtual]

Redoes data when sequence numbers change.

Reimplemented from CbcObject.

int CbcSOS::numberMembers (  )  const [inline]

Number of members.

Definition at line 141 of file CbcBranchActual.hpp.

References numberMembers_.

const int* CbcSOS::members (  )  const [inline]

Members (indices in range 0 ... numberColumns-1).

Definition at line 145 of file CbcBranchActual.hpp.

References members_.

int CbcSOS::sosType (  )  const [inline]

SOS type.

Definition at line 149 of file CbcBranchActual.hpp.

References sosType_.

const double* CbcSOS::weights (  )  const [inline]

Array of weights.

Definition at line 153 of file CbcBranchActual.hpp.


Member Data Documentation

int* CbcSOS::members_ [private]

Members (indices in range 0 ... numberColumns-1).

Definition at line 154 of file CbcBranchActual.hpp.

Referenced by members().

double* CbcSOS::weights_ [private]

Weights.

Definition at line 162 of file CbcBranchActual.hpp.

int CbcSOS::numberMembers_ [private]

Number of members.

Definition at line 165 of file CbcBranchActual.hpp.

Referenced by numberMembers().

int CbcSOS::sosType_ [private]

SOS type.

Definition at line 167 of file CbcBranchActual.hpp.

Referenced by sosType().


The documentation for this class was generated from the following file:
Generated on Thu May 15 22:00:09 2008 by  doxygen 1.4.7