Bonmin  1.8.8
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:
Bonmin::HeuristicDive

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

int * columnLength_
 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.

Bonmin::HeuristicDiveVectorLength::HeuristicDiveVectorLength ( BonminSetup setup)

Constructor with setup.

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

Copy constructor.

Bonmin::HeuristicDiveVectorLength::~HeuristicDiveVectorLength ( )
inline

Destructor.

Definition at line 33 of file BonHeuristicDiveVectorLength.hpp.

References columnLength_.

Member Function Documentation

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

Assignment operator.

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

Clone.

Implements Bonmin::HeuristicDive.

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.

References Initialize(), Bonmin::BabSetupBase::options(), and Bonmin::HeuristicDive::setSetup().

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

sets internal variables

Implements Bonmin::HeuristicDive.

virtual 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.

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

Register the options common to all local search based heuristics.

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

Initiaize using passed options.

Referenced by setSetup().

Member Data Documentation

int* Bonmin::HeuristicDiveVectorLength::columnLength_
private

the number of nonzero elements in each column

Definition at line 70 of file BonHeuristicDiveVectorLength.hpp.

Referenced by ~HeuristicDiveVectorLength().


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