- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# CglCutGenerator Class Reference

Cut Generator Base Class. More...

`#include <CglCutGenerator.hpp>`

Inheritance diagram for CglCutGenerator:

[legend]
List of all members.

## Public Member Functions
Generate Cuts
virtual void | generateCuts (const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo()) const =0
| Generate cuts for the model data contained in si.
Constructors and destructors
| CglCutGenerator ()
| Default constructor.
| CglCutGenerator (const CglCutGenerator &)
| Copy constructor.
virtual CglCutGenerator * | clone () const =0
| Clone.
CglCutGenerator & | operator= (const CglCutGenerator &rhs)
| Assignment operator.
virtual | ~CglCutGenerator ()
| Destructor.
virtual std::string | generateCpp (FILE *fp)
| Create C++ lines to set the generator in the current state.
virtual void | refreshSolver (OsiSolverInterface *solver)
| This can be used to refresh any information.
Gets and Sets
int | getAggressiveness () const
| Get Aggressiveness - 0 = neutral, 100 is normal root node.
void | setAggressiveness (int value)
| Set Aggressiveness - 0 = neutral, 100 is normal root node.
virtual bool | mayGenerateRowCutsInTree () const
| Returns true if may generate Row cuts in tree (rather than root node).
virtual bool | needsOptimalBasis () const
| Return true if needs optimal basis to do cuts.
## Public Attributes
int | aggressive_
| Aggressiveness - 0 = neutral, 100 is normal root node.

## Detailed Description

Cut Generator Base Class.

This is an abstract base class for generating cuts. A specific cut generator will inherit from this class.

Definition at line 21 of file CglCutGenerator.hpp.

## Constructor & Destructor Documentation

CglCutGenerator::CglCutGenerator | ( |  | ) |

Default constructor.

CglCutGenerator::CglCutGenerator | ( | const CglCutGenerator & |  | ) |

Copy constructor.

virtual CglCutGenerator::~CglCutGenerator | ( |  | ) | `[virtual]`

Destructor.

## Member Function Documentation

virtual void CglCutGenerator::generateCuts | ( | const OsiSolverInterface & | si,
|  | OsiCuts & | cs,
|  | const CglTreeInfo | info = `CglTreeInfo()` |
| ) |  |  | const`[pure virtual]`

Generate cuts for the model data contained in si.

The generated cuts are inserted into and returned in the collection of cuts cs.

Implemented in CglAllDifferent, CglClique, CglFakeClique, CglDuplicateRow, CglFlowCover, CglGomory, CglKnapsackCover, CglLandP, CglLiftAndProject, CglMixedIntegerRounding, CglMixedIntegerRounding2, CglOddHole, CglProbing, CglImplication, CglRedSplit, CglResidualCapacity, CglSimpleRounding, CglStored, and CglTwomir.

virtual CglCutGenerator* CglCutGenerator::clone | ( |  | ) | const`[pure virtual]`

Clone.

Implemented in CglAllDifferent, CglClique, CglFakeClique, CglDuplicateRow, CglFlowCover, CglGomory, CglKnapsackCover, CglLandP, CglLiftAndProject, CglMixedIntegerRounding, CglMixedIntegerRounding2, CglOddHole, CglProbing, CglImplication, CglRedSplit, CglResidualCapacity, CglSimpleRounding, CglStored, and CglTwomir.

CglCutGenerator& CglCutGenerator::operator= | ( | const CglCutGenerator & | rhs | ) |

Assignment operator.

virtual std::string CglCutGenerator::generateCpp | ( | FILE * | fp | ) | `[inline, virtual]`

Create C++ lines to set the generator in the current state.

The output must be parsed by the calling code, as each line starts with a key indicating the following:
0: must be kept (for includes etc)
3: Set to changed (not default) values
4: Set to default values (redundant)

Keys 1, 2, 5, 6, 7, 8 are defined, but not applicable to cut generators.

Reimplemented in CglAllDifferent, CglClique, CglDuplicateRow, CglFlowCover, CglGomory, CglKnapsackCover, CglLiftAndProject, CglMixedIntegerRounding, CglMixedIntegerRounding2, CglProbing, CglImplication, CglRedSplit, CglSimpleRounding, and CglTwomir.

Definition at line 63 of file CglCutGenerator.hpp.

virtual void CglCutGenerator::refreshSolver | ( | OsiSolverInterface * | solver | ) | `[inline, virtual]`

This can be used to refresh any information.

Reimplemented in CglAllDifferent, CglDuplicateRow, CglKnapsackCover, CglMixedIntegerRounding, CglMixedIntegerRounding2, CglOddHole, and CglProbing.

Definition at line 66 of file CglCutGenerator.hpp.

int CglCutGenerator::getAggressiveness | ( |  | ) | const`[inline]`

Get Aggressiveness - 0 = neutral, 100 is normal root node.

Really just a hint to cut generator

Definition at line 75 of file CglCutGenerator.hpp.

References aggressive_.

void CglCutGenerator::setAggressiveness | ( | int | value | ) | `[inline]`

Set Aggressiveness - 0 = neutral, 100 is normal root node.

Really just a hint to cut generator

Definition at line 82 of file CglCutGenerator.hpp.

References aggressive_.

virtual bool CglCutGenerator::mayGenerateRowCutsInTree | ( |  | ) | const`[virtual]`

Returns true if may generate Row cuts in tree (rather than root node).

Used so know if matrix will change in tree. Really meant so column cut generators can still be active without worrying code. Default is true

Reimplemented in CglAllDifferent, and CglProbing.

virtual bool CglCutGenerator::needsOptimalBasis | ( |  | ) | const`[virtual]`

Return true if needs optimal basis to do cuts.

Reimplemented in CglGomory, CglLandP, CglRedSplit, and CglTwomir.

## Member Data Documentation

int CglCutGenerator::aggressive_

Aggressiveness - 0 = neutral, 100 is normal root node.

Really just a hint to cut generator

Definition at line 106 of file CglCutGenerator.hpp.

Referenced by getAggressiveness(), and setAggressiveness().

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

- /home/coin/SVN-release/Blis-0.91.0/Cgl/src/CglCutGenerator.hpp