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

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

# CglLiftAndProject Class Reference

Lift And Project Cut Generator Class. More...

`#include <CglLiftAndProject.hpp>`

Inheritance diagram for CglLiftAndProject:

[legend]
Collaboration diagram for CglLiftAndProject:

[legend]
List of all members.

## Public Member Functions
Generate Cuts
virtual void | generateCuts (const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo()) const
| Generate lift-and-project cuts for the model of the solver interface, si.
double | getBeta () const
| Get the normalization : Either beta=+1 or beta=-1.
void | setBeta (int oneOrMinusOne)
| Set the normalization : Either beta=+1 or beta=-1.
Constructors and destructors
| CglLiftAndProject ()
| Default constructor.
| CglLiftAndProject (const CglLiftAndProject &)
| Copy constructor.
virtual CglCutGenerator * | clone () const
| Clone.
CglLiftAndProject & | operator= (const CglLiftAndProject &rhs)
| Assignment operator.
virtual | ~CglLiftAndProject ()
| Destructor.
virtual std::string | generateCpp (FILE *fp)
| Create C++ lines to get to current state.
## Private Attributes
Private member data
double | beta_
| The normalization is beta_=1 or beta_=-1.
double | epsilon_
| epsilon
double | onetol_
| 1-epsilon
## Friends
void | CglLiftAndProjectUnitTest (const OsiSolverInterface *siP, const std::string mpdDir)
| A function that tests the methods in the CglLiftAndProject class.

## Detailed Description

Lift And Project Cut Generator Class.

Definition at line 11 of file CglLiftAndProject.hpp.

## Constructor & Destructor Documentation

CglLiftAndProject::CglLiftAndProject | ( |  | ) |

Default constructor.

CglLiftAndProject::CglLiftAndProject | ( | const CglLiftAndProject & |  | ) |

Copy constructor.

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

Destructor.

## Member Function Documentation

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

Generate lift-and-project cuts for the model of the solver interface, si.

Insert the generated cuts into OsiCut, cs.

Implements CglCutGenerator.

double CglLiftAndProject::getBeta | ( |  | ) | const`[inline]`

Get the normalization : Either beta=+1 or beta=-1.

Definition at line 28 of file CglLiftAndProject.hpp.

References beta_.

void CglLiftAndProject::setBeta | ( | int | oneOrMinusOne | ) | `[inline]`

Set the normalization : Either beta=+1 or beta=-1.

Default value is 1.

Definition at line 35 of file CglLiftAndProject.hpp.

References beta_.

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

Clone.

Implements CglCutGenerator.

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

Assignment operator.

virtual std::string CglLiftAndProject::generateCpp | ( | FILE * | fp | ) | `[virtual]`

Create C++ lines to get to current state.

Reimplemented from CglCutGenerator.

## Friends And Related Function Documentation

void CglLiftAndProjectUnitTest | ( | const OsiSolverInterface * | siP,
|  | const std::string | mpdDir |
| ) |  |  | `[friend]`

A function that tests the methods in the CglLiftAndProject class.

The only reason for it not to be a member method is that this way it doesn't have to be compiled into the library. And that's a gain, because the library should be compiled with optimization on, but this method should be compiled with debugging.

## Member Data Documentation

double CglLiftAndProject::beta_`[private]`

The normalization is beta_=1 or beta_=-1.

Definition at line 85 of file CglLiftAndProject.hpp.

Referenced by getBeta(), and setBeta().

double CglLiftAndProject::epsilon_`[private]`

epsilon

Definition at line 87 of file CglLiftAndProject.hpp.

double CglLiftAndProject::onetol_`[private]`

1-epsilon

Definition at line 89 of file CglLiftAndProject.hpp.

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

- /home/coin/SVN-release/Bcps-0.91.0/Cgl/src/CglLiftAndProject/CglLiftAndProject.hpp