Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
CglTemporary Class Reference

Stored Temporary Cut Generator Class - destroyed after first use. More...

#include <CbcLinked.hpp>

+ Inheritance diagram for CglTemporary:
+ Collaboration diagram for CglTemporary:

Public Member Functions

Generate Cuts
virtual void generateCuts (const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo())
 Generate Mixed Integer Stored cuts for the model of the solver interface, si. More...
 
Constructors and destructors
 CglTemporary ()
 Default constructor. More...
 
 CglTemporary (const CglTemporary &rhs)
 Copy constructor. More...
 
virtual CglCutGeneratorclone () const
 Clone. More...
 
CglTemporaryoperator= (const CglTemporary &rhs)
 Assignment operator. More...
 
virtual ~CglTemporary ()
 Destructor. More...
 
- Public Member Functions inherited from CglStored
void setRequiredViolation (double value)
 Set. More...
 
double getRequiredViolation () const
 Get. More...
 
void setProbingInfo (CglTreeProbingInfo *info)
 Takes over ownership of probing info. More...
 
void addCut (const OsiCuts &cs)
 Add cuts. More...
 
void addCut (const OsiRowCut &cut)
 Add a row cut. More...
 
void addCut (double lb, double ub, const CoinPackedVector &vector)
 Add a row cut from a packed vector. More...
 
void addCut (double lb, double ub, int size, const int *colIndices, const double *elements)
 Add a row cut from elements. More...
 
int sizeRowCuts () const
 
const OsiRowCutrowCutPointer (int index) const
 
void saveStuff (double bestObjective, const double *bestSolution, const double *lower, const double *upper)
 Save stuff. More...
 
const double * bestSolution () const
 Best solution (or NULL) More...
 
double bestObjective () const
 Best objective. More...
 
const double * tightLower () const
 Tight lower bounds. More...
 
const double * tightUpper () const
 Tight upper bounds. More...
 
 CglStored (int numberColumns=0)
 Default constructor. More...
 
 CglStored (const CglStored &rhs)
 Copy constructor. More...
 
 CglStored (const char *fileName)
 Constructor from file. More...
 
CglStoredoperator= (const CglStored &rhs)
 Assignment operator. More...
 
virtual ~CglStored ()
 Destructor. More...
 
- Public Member Functions inherited from CglCutGenerator
 CglCutGenerator ()
 Default constructor. More...
 
 CglCutGenerator (const CglCutGenerator &)
 Copy constructor. More...
 
CglCutGeneratoroperator= (const CglCutGenerator &rhs)
 Assignment operator. More...
 
virtual ~CglCutGenerator ()
 Destructor. More...
 
virtual std::string generateCpp (FILE *)
 Create C++ lines to set the generator in the current state. More...
 
virtual void refreshSolver (OsiSolverInterface *)
 This can be used to refresh any information. More...
 
int getAggressiveness () const
 Get Aggressiveness - 0 = neutral, 100 is normal root node. More...
 
void setAggressiveness (int value)
 Set Aggressiveness - 0 = neutral, 100 is normal root node. More...
 
void setGlobalCuts (bool trueOrFalse)
 Set whether can do global cuts. More...
 
bool canDoGlobalCuts () const
 Say whether can do global cuts. More...
 
virtual bool mayGenerateRowCutsInTree () const
 Returns true if may generate Row cuts in tree (rather than root node). More...
 
virtual bool needsOptimalBasis () const
 Return true if needs optimal basis to do cuts. More...
 
virtual int maximumLengthOfCutInTree () const
 Return maximum length of cut in tree. More...
 

Additional Inherited Members

- Public Attributes inherited from CglCutGenerator
int aggressive_
 Aggressiveness - 0 = neutral, 100 is normal root node. More...
 
bool canDoGlobalCuts_
 True if can do global cuts i.e. no general integers. More...
 
- Protected Attributes inherited from CglStored
double requiredViolation_
 Only add if more than this requiredViolation. More...
 
CglTreeProbingInfoprobingInfo_
 Pointer to probing information. More...
 
OsiCuts cuts_
 Cuts. More...
 
int numberColumns_
 Number of columns in model. More...
 
double * bestSolution_
 Best solution (objective at end) More...
 
double * bounds_
 Tight bounds. More...
 

Detailed Description

Stored Temporary Cut Generator Class - destroyed after first use.

Definition at line 1266 of file CbcLinked.hpp.

Constructor & Destructor Documentation

CglTemporary::CglTemporary ( )

Default constructor.

CglTemporary::CglTemporary ( const CglTemporary rhs)

Copy constructor.

virtual CglTemporary::~CglTemporary ( )
virtual

Destructor.

Member Function Documentation

virtual void CglTemporary::generateCuts ( const OsiSolverInterface si,
OsiCuts cs,
const CglTreeInfo  info = CglTreeInfo() 
)
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

Reimplemented from CglStored.

virtual CglCutGenerator* CglTemporary::clone ( ) const
virtual

Clone.

Reimplemented from CglStored.

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

Assignment operator.


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