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

#include <BonHeuristicDiveVectorLength.hpp>

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

Public Member Functions

 HeuristicDiveVectorLength ()
 Default Constructor. More...
 
 HeuristicDiveVectorLength (BonminSetup *setup)
 Constructor with setup. More...
 
 HeuristicDiveVectorLength (const HeuristicDiveVectorLength &copy)
 Copy constructor. More...
 
 ~HeuristicDiveVectorLength ()
 Destructor. More...
 
HeuristicDiveVectorLengthoperator= (const HeuristicDiveVectorLength &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::HeuristicDive
 HeuristicDive ()
 Default constructor. More...
 
 HeuristicDive (BonminSetup *setup)
 Constructor with setup. More...
 
 HeuristicDive (const HeuristicDive &copy)
 Copy constructor. More...
 
 ~HeuristicDive ()
 Destructor. More...
 
HeuristicDiveoperator= (const HeuristicDive &rhs)
 Assignment operator. More...
 
virtual void resetModel (CbcModel *model)
 Resets stuff if model changes. More...
 
void setPercentageToFix (double value)
 Set percentage of integer variables to fix at bounds. 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::HeuristicDive
BonminSetupsetup_
 Setup to use for local searches (will make copies). More...
 
double percentageToFix_
 Percentage of integer variables to fix at bounds. More...
 

Detailed Description

Definition at line 21 of file BonHeuristicDiveVectorLength.hpp.

Constructor & Destructor Documentation

Bonmin::HeuristicDiveVectorLength::HeuristicDiveVectorLength ( )

Default Constructor.

Definition at line 16 of file BonHeuristicDiveVectorLength.cpp.

Bonmin::HeuristicDiveVectorLength::HeuristicDiveVectorLength ( BonminSetup setup)

Constructor with setup.

Definition at line 22 of file BonHeuristicDiveVectorLength.cpp.

Bonmin::HeuristicDiveVectorLength::HeuristicDiveVectorLength ( const HeuristicDiveVectorLength copy)

Copy constructor.

Definition at line 30 of file BonHeuristicDiveVectorLength.cpp.

Bonmin::HeuristicDiveVectorLength::~HeuristicDiveVectorLength ( )
inline

Destructor.

Definition at line 33 of file BonHeuristicDiveVectorLength.hpp.

Member Function Documentation

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

Assignment operator.

Definition at line 38 of file BonHeuristicDiveVectorLength.cpp.

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

Clone.

Implements Bonmin::HeuristicDive.

Definition at line 49 of file BonHeuristicDiveVectorLength.cpp.

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

Change setup used for heuristic.

Reimplemented from Bonmin::HeuristicDive.

Definition at line 45 of file BonHeuristicDiveVectorLength.hpp.

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

sets internal variables

Implements Bonmin::HeuristicDive.

Definition at line 55 of file BonHeuristicDiveVectorLength.cpp.

void Bonmin::HeuristicDiveVectorLength::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::HeuristicDive.

Definition at line 94 of file BonHeuristicDiveVectorLength.cpp.

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

Register the options common to all local search based heuristics.

Definition at line 162 of file BonHeuristicDiveVectorLength.cpp.

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

Initiaize using passed options.

Definition at line 175 of file BonHeuristicDiveVectorLength.cpp.

Member Data Documentation

int* Bonmin::HeuristicDiveVectorLength::columnLength_
private

the number of nonzero elements in each column

Definition at line 70 of file BonHeuristicDiveVectorLength.hpp.


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