Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
Bonmin::HeuristicDiveMIPVectorLength Class Reference

#include <BonHeuristicDiveMIPVectorLength.hpp>

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

Public Member Functions

 HeuristicDiveMIPVectorLength ()
 Default Constructor. More...
 
 HeuristicDiveMIPVectorLength (BonminSetup *setup)
 Constructor with setup. More...
 
 HeuristicDiveMIPVectorLength (const HeuristicDiveMIPVectorLength &copy)
 Copy constructor. More...
 
 ~HeuristicDiveMIPVectorLength ()
 Destructor. More...
 
HeuristicDiveMIPVectorLengthoperator= (const HeuristicDiveMIPVectorLength &rhs)
 Assignment operator. More...
 
virtual CbcHeuristic * clone () const
 Clone. More...
 
virtual void setSetup (BonminSetup *setup)
 Change setup used for heuristic. More...
 
virtual void setInternalVariables (TMINLP2TNLP *minlp)
 sets internal variables More...
 
virtual void selectVariableToBranch (TMINLP2TNLP *minlp, const vector< int > &integerColumns, const double *newSolution, int &bestColumn, int &bestRound)
 Selects the next variable to branch on. More...
 
void Initialize (Ipopt::SmartPtr< Ipopt::OptionsList > options)
 Initiaize using passed options. More...
 
- Public Member Functions inherited from Bonmin::HeuristicDiveMIP
 HeuristicDiveMIP (BonminSetup *setup)
 Constructor with setup. More...
 
 HeuristicDiveMIP (const HeuristicDiveMIP &copy)
 Copy constructor. More...
 
 ~HeuristicDiveMIP ()
 Destructor. More...
 
HeuristicDiveMIPoperator= (const HeuristicDiveMIP &rhs)
 Assignment operator. More...
 
void Initialize (BonminSetup *setup)
 Initialize method. More...
 
virtual void resetModel (CbcModel *model)
 Resets stuff if model changes. More...
 
virtual int solution (double &solutionValue, double *betterSolution)
 Performs heuristic. More...
 

Static Public Member Functions

static void registerOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
 Register the options common to all local search based heuristics. More...
 

Private Attributes

intcolumnLength_
 the number of nonzero elements in each column More...
 

Additional Inherited Members

- Protected Attributes inherited from Bonmin::HeuristicDiveMIP
BonminSetupsetup_
 Setup to use for local searches (will make copies). More...
 

Detailed Description

Definition at line 21 of file BonHeuristicDiveMIPVectorLength.hpp.

Constructor & Destructor Documentation

Bonmin::HeuristicDiveMIPVectorLength::HeuristicDiveMIPVectorLength ( )

Default Constructor.

Bonmin::HeuristicDiveMIPVectorLength::HeuristicDiveMIPVectorLength ( BonminSetup setup)

Constructor with setup.

Definition at line 24 of file BonHeuristicDiveMIPVectorLength.cpp.

Bonmin::HeuristicDiveMIPVectorLength::HeuristicDiveMIPVectorLength ( const HeuristicDiveMIPVectorLength copy)

Copy constructor.

Definition at line 32 of file BonHeuristicDiveMIPVectorLength.cpp.

Bonmin::HeuristicDiveMIPVectorLength::~HeuristicDiveMIPVectorLength ( )
inline

Destructor.

Definition at line 33 of file BonHeuristicDiveMIPVectorLength.hpp.

Member Function Documentation

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

Assignment operator.

Definition at line 40 of file BonHeuristicDiveMIPVectorLength.cpp.

CbcHeuristic * Bonmin::HeuristicDiveMIPVectorLength::clone ( ) const
virtual

Clone.

Implements Bonmin::HeuristicDiveMIP.

Definition at line 51 of file BonHeuristicDiveMIPVectorLength.cpp.

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

Change setup used for heuristic.

Reimplemented from Bonmin::HeuristicDiveMIP.

Definition at line 45 of file BonHeuristicDiveMIPVectorLength.hpp.

void Bonmin::HeuristicDiveMIPVectorLength::setInternalVariables ( TMINLP2TNLP minlp)
virtual

sets internal variables

Implements Bonmin::HeuristicDiveMIP.

Definition at line 57 of file BonHeuristicDiveMIPVectorLength.cpp.

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

Selects the next variable to branch on.

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

Implements Bonmin::HeuristicDiveMIP.

Definition at line 96 of file BonHeuristicDiveMIPVectorLength.cpp.

void Bonmin::HeuristicDiveMIPVectorLength::registerOptions ( Ipopt::SmartPtr< Bonmin::RegisteredOptions roptions)
static

Register the options common to all local search based heuristics.

Definition at line 164 of file BonHeuristicDiveMIPVectorLength.cpp.

void Bonmin::HeuristicDiveMIPVectorLength::Initialize ( Ipopt::SmartPtr< Ipopt::OptionsList >  options)

Initiaize using passed options.

Definition at line 177 of file BonHeuristicDiveMIPVectorLength.cpp.

Member Data Documentation

int* Bonmin::HeuristicDiveMIPVectorLength::columnLength_
private

the number of nonzero elements in each column

Definition at line 70 of file BonHeuristicDiveMIPVectorLength.hpp.


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