Public Member Functions | Protected Attributes | Private Attributes | List of all members
Bonmin::HeuristicDiveMIP Class Referenceabstract

#include <BonHeuristicDiveMIP.hpp>

Inheritance diagram for Bonmin::HeuristicDiveMIP:
Inheritance graph
[legend]
Collaboration diagram for Bonmin::HeuristicDiveMIP:
Collaboration graph
[legend]

Public Member Functions

 HeuristicDiveMIP (BonminSetup *setup)
 Constructor with setup. More...
 
 HeuristicDiveMIP (const HeuristicDiveMIP &copy)
 Copy constructor. More...
 
 ~HeuristicDiveMIP ()
 Destructor. More...
 
HeuristicDiveMIPoperator= (const HeuristicDiveMIP &rhs)
 Assignment operator. More...
 
virtual CbcHeuristic * clone () const =0
 Clone. More...
 
void Initialize (BonminSetup *setup)
 Initialize method. More...
 
virtual void resetModel (CbcModel *model)
 Resets stuff if model changes. More...
 
virtual void setSetup (BonminSetup *setup)
 Change setup used for heuristic. More...
 
virtual int solution (double &solutionValue, double *betterSolution)
 Performs heuristic. More...
 
virtual void setInternalVariables (TMINLP2TNLP *minlp)=0
 sets internal variables More...
 
virtual void selectVariableToBranch (TMINLP2TNLP *minlp, const vector< int > &integerColumns, const double *newSolution, int &bestColumn, int &bestRound)=0
 Selects the next variable to branch on. More...
 

Protected Attributes

BonminSetupsetup_
 Setup to use for local searches (will make copies). More...
 

Private Attributes

int howOften_
 How often to do (code can change) More...
 
SubMipSolvermip_
 A subsolver for MIP. More...
 

Detailed Description

Definition at line 19 of file BonHeuristicDiveMIP.hpp.

Constructor & Destructor Documentation

Bonmin::HeuristicDiveMIP::HeuristicDiveMIP ( BonminSetup setup)

Constructor with setup.

Definition at line 40 of file BonHeuristicDiveMIP.cpp.

Bonmin::HeuristicDiveMIP::HeuristicDiveMIP ( const HeuristicDiveMIP copy)

Copy constructor.

Definition at line 57 of file BonHeuristicDiveMIP.cpp.

Bonmin::HeuristicDiveMIP::~HeuristicDiveMIP ( )

Destructor.

Definition at line 80 of file BonHeuristicDiveMIP.cpp.

Member Function Documentation

HeuristicDiveMIP & Bonmin::HeuristicDiveMIP::operator= ( const HeuristicDiveMIP rhs)

Assignment operator.

Definition at line 67 of file BonHeuristicDiveMIP.cpp.

virtual CbcHeuristic* Bonmin::HeuristicDiveMIP::clone ( ) const
pure virtual
void Bonmin::HeuristicDiveMIP::Initialize ( BonminSetup setup)

Initialize method.

Definition at line 51 of file BonHeuristicDiveMIP.cpp.

virtual void Bonmin::HeuristicDiveMIP::resetModel ( CbcModel *  model)
inlinevirtual

Resets stuff if model changes.

Definition at line 46 of file BonHeuristicDiveMIP.hpp.

virtual void Bonmin::HeuristicDiveMIP::setSetup ( BonminSetup setup)
inlinevirtual

Change setup used for heuristic.

Reimplemented in Bonmin::HeuristicDiveMIPVectorLength, and Bonmin::HeuristicDiveMIPFractional.

Definition at line 51 of file BonHeuristicDiveMIP.hpp.

int Bonmin::HeuristicDiveMIP::solution ( double &  solutionValue,
double *  betterSolution 
)
virtual

Performs heuristic.

Definition at line 95 of file BonHeuristicDiveMIP.cpp.

virtual void Bonmin::HeuristicDiveMIP::setInternalVariables ( TMINLP2TNLP minlp)
pure virtual

sets internal variables

Implemented in Bonmin::HeuristicDiveMIPVectorLength, and Bonmin::HeuristicDiveMIPFractional.

virtual void Bonmin::HeuristicDiveMIP::selectVariableToBranch ( TMINLP2TNLP minlp,
const vector< int > &  integerColumns,
const double *  newSolution,
int bestColumn,
int bestRound 
)
pure virtual

Selects the next variable to branch on.

If bestColumn = -1, it means that no variable was found

Implemented in Bonmin::HeuristicDiveMIPVectorLength, and Bonmin::HeuristicDiveMIPFractional.

Member Data Documentation

BonminSetup* Bonmin::HeuristicDiveMIP::setup_
protected

Setup to use for local searches (will make copies).

Definition at line 73 of file BonHeuristicDiveMIP.hpp.

int Bonmin::HeuristicDiveMIP::howOften_
private

How often to do (code can change)

Definition at line 77 of file BonHeuristicDiveMIP.hpp.

SubMipSolver* Bonmin::HeuristicDiveMIP::mip_
private

A subsolver for MIP.

Definition at line 79 of file BonHeuristicDiveMIP.hpp.


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