CglStored Class Reference

Stored Cut Generator Class. More...

#include <CglStored.hpp>

Inheritance diagram for CglStored:
Inheritance graph
[legend]
Collaboration diagram for CglStored:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Generate Cuts



virtual void generateCuts (const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo()) const
 Generate Mixed Integer Stored cuts for the model of the solver interface, si.
Change criterion on whether to include cut.

Violations of more than this will be added to current cut list (default 1.0e-5)



void setRequiredViolation (double value)
 Set.
double getRequiredViolation () const
 Get.
void setProbingInfo (CglTreeProbingInfo *info)
 Takes over ownership of probing info.
Cut stuff



void addCut (const OsiCuts &cs)
 Add cuts.
void addCut (const OsiRowCut &cut)
 Add a row cut.
void addCut (double lb, double ub, const CoinPackedVector &vector)
 Add a row cut from a packed vector.
void addCut (double lb, double ub, int size, const int *colIndices, const double *elements)
 Add a row cut from elements.
int sizeRowCuts () const
 Add cuts.
const OsiRowCutrowCutPointer (int index) const
 Add cuts.
Constructors and destructors



 CglStored ()
 Default constructor.
 CglStored (const CglStored &rhs)
 Copy constructor.
virtual CglCutGeneratorclone () const
 Clone.
CglStoredoperator= (const CglStored &rhs)
 Assignment operator.
virtual ~CglStored ()
 Destructor.

Protected Attributes

Protected member data



double requiredViolation_
 Only add if more than this requiredViolation.
CglTreeProbingInfoprobingInfo_
 Pointer to probing information.
OsiCuts cuts_
 Cuts.

Detailed Description

Stored Cut Generator Class.

Definition at line 13 of file CglStored.hpp.


Constructor & Destructor Documentation

CglStored::CglStored (  ) 

Default constructor.

CglStored::CglStored ( const CglStored rhs  ) 

Copy constructor.

virtual CglStored::~CglStored (  )  [virtual]

Destructor.


Member Function Documentation

virtual void CglStored::generateCuts ( const OsiSolverInterface si,
OsiCuts cs,
const CglTreeInfo  info = CglTreeInfo() 
) const [virtual]

Generate Mixed Integer Stored cuts for the model of the solver interface, si.

Insert the generated cuts into OsiCut, cs.

This generator just looks at previously stored cuts and inserts any that are violated by enough

Implements CglCutGenerator.

Reimplemented in CglTemporary.

void CglStored::setRequiredViolation ( double  value  )  [inline]

Set.

Definition at line 37 of file CglStored.hpp.

double CglStored::getRequiredViolation (  )  const [inline]

Get.

Definition at line 40 of file CglStored.hpp.

void CglStored::setProbingInfo ( CglTreeProbingInfo info  )  [inline]

Takes over ownership of probing info.

Definition at line 43 of file CglStored.hpp.

void CglStored::addCut ( const OsiCuts cs  ) 

Add cuts.

void CglStored::addCut ( const OsiRowCut cut  ) 

Add a row cut.

void CglStored::addCut ( double  lb,
double  ub,
const CoinPackedVector vector 
)

Add a row cut from a packed vector.

void CglStored::addCut ( double  lb,
double  ub,
int  size,
const int *  colIndices,
const double *  elements 
)

Add a row cut from elements.

int CglStored::sizeRowCuts (  )  const [inline]

Add cuts.

Definition at line 57 of file CglStored.hpp.

const OsiRowCut* CglStored::rowCutPointer ( int  index  )  const [inline]

Add cuts.

Definition at line 59 of file CglStored.hpp.

virtual CglCutGenerator* CglStored::clone (  )  const [virtual]

Clone.

Implements CglCutGenerator.

Reimplemented in CglTemporary.

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

Assignment operator.

Reimplemented from CglCutGenerator.

Reimplemented in CglTemporary.


Member Data Documentation

double CglStored::requiredViolation_ [protected]

Only add if more than this requiredViolation.

Definition at line 92 of file CglStored.hpp.

Pointer to probing information.

Definition at line 94 of file CglStored.hpp.

OsiCuts CglStored::cuts_ [mutable, protected]

Cuts.

Definition at line 96 of file CglStored.hpp.


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

Generated on 15 Mar 2015 for Coin-All by  doxygen 1.6.1