Bonmin::HeuristicDiveVectorLength Class Reference

#include <BonHeuristicDiveVectorLength.hpp>

Inheritance diagram for Bonmin::HeuristicDiveVectorLength:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HeuristicDiveVectorLength ()
 Default Constructor.
 HeuristicDiveVectorLength (BonminSetup *setup)
 Constructor with setup.
 HeuristicDiveVectorLength (const HeuristicDiveVectorLength &copy)
 Copy constructor.
 ~HeuristicDiveVectorLength ()
 Destructor.
HeuristicDiveVectorLengthoperator= (const HeuristicDiveVectorLength &rhs)
 Assignment operator.
virtual CbcHeuristic * clone () const
 Clone.
virtual void setSetup (BonminSetup *setup)
 Change setup used for heuristic.
virtual void setInternalVariables (TMINLP2TNLP *minlp)
 sets internal variables
virtual void selectVariableToBranch (TMINLP2TNLP *minlp, const vector< int > &integerColumns, const double *newSolution, int &bestColumn, int &bestRound)
 If bestColumn = -1, it means that no variable was found.
void Initialize (Ipopt::SmartPtr< Ipopt::OptionsList > options)
 Initiaize using passed options.

Static Public Member Functions

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

Private Attributes

int * columnLength_
 the number of nonzero elements in each column

Detailed Description

Definition at line 21 of file BonHeuristicDiveVectorLength.hpp.


Constructor & Destructor Documentation

Bonmin::HeuristicDiveVectorLength::HeuristicDiveVectorLength (  ) 

Default Constructor.

Definition at line 20 of file BonHeuristicDiveVectorLength.cpp.

Referenced by clone().

Bonmin::HeuristicDiveVectorLength::HeuristicDiveVectorLength ( BonminSetup setup  ) 

Constructor with setup.

Definition at line 26 of file BonHeuristicDiveVectorLength.cpp.

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

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

Copy constructor.

Definition at line 34 of file BonHeuristicDiveVectorLength.cpp.

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.

Definition at line 42 of file BonHeuristicDiveVectorLength.cpp.

References columnLength_, and Bonmin::HeuristicDive::operator=().

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

Clone.

Implements Bonmin::HeuristicDive.

Definition at line 53 of file BonHeuristicDiveVectorLength.cpp.

References HeuristicDiveVectorLength().

virtual void Bonmin::HeuristicDiveVectorLength::setSetup ( BonminSetup setup  )  [inline, virtual]

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().

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

sets internal variables

Implements Bonmin::HeuristicDive.

Definition at line 59 of file BonHeuristicDiveVectorLength.cpp.

References columnLength_, Bonmin::TMINLP2TNLP::eval_jac_g(), Bonmin::TMINLP2TNLP::get_nlp_info(), and Bonmin::TMINLP2TNLP::x_sol().

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

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

Implements Bonmin::HeuristicDive.

Definition at line 98 of file BonHeuristicDiveVectorLength.cpp.

References columnLength_, e, Bonmin::TMINLP2TNLP::eval_grad_f(), Bonmin::TMINLP2TNLP::get_nlp_info(), Bonmin::TMINLP2TNLP::x_l(), and Bonmin::TMINLP2TNLP::x_u().

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

Register the options common to all local search based heuristics.

Definition at line 166 of file BonHeuristicDiveVectorLength.cpp.

References Bonmin::RegisteredOptions::BonminCategory.

Referenced by Couenne::CouenneSetup::registerAllOptions(), and Bonmin::BonminSetup::registerAllOptions().

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

Initiaize using passed options.

Definition at line 179 of file BonHeuristicDiveVectorLength.cpp.

Referenced by HeuristicDiveVectorLength(), and 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 operator=(), selectVariableToBranch(), setInternalVariables(), and ~HeuristicDiveVectorLength().


The documentation for this class was generated from the following files:
Generated on Thu Nov 10 03:13:45 2011 by  doxygen 1.4.7