Bonmin  1.7
Public Member Functions | Static Public Member Functions | Private Attributes
Bonmin::HeuristicLocalBranching Class Reference

#include <BonHeuristicLocalBranching.hpp>

Inheritance diagram for Bonmin::HeuristicLocalBranching:
Bonmin::LocalSolverBasedHeuristic

List of all members.

Public Member Functions

 HeuristicLocalBranching ()
 Default constructor.
 HeuristicLocalBranching (BonminSetup *setup)
 Constructor with setup.
 HeuristicLocalBranching (const HeuristicLocalBranching &other)
 Copy constructor.
virtual CbcHeuristic * clone () const
 Virtual constructor.
virtual ~HeuristicLocalBranching ()
 Destructor.
virtual void setModel (CbcModel *model)
 Update model.
virtual void validate ()
 Validate model i.e. sets when_ to 0 if necessary.
int solution (double &objectiveValue, double *newSolution)
 Runs heuristic.
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 howOften_
 How often to do (code can change)
int numberSolutions_
 Number of solutions so we can do something at solution.

Detailed Description

Definition at line 16 of file BonHeuristicLocalBranching.hpp.


Constructor & Destructor Documentation

Bonmin::HeuristicLocalBranching::HeuristicLocalBranching ( )

Default constructor.

Referenced by clone().

Bonmin::HeuristicLocalBranching::HeuristicLocalBranching ( BonminSetup setup)

Constructor with setup.

Bonmin::HeuristicLocalBranching::HeuristicLocalBranching ( const HeuristicLocalBranching other)

Copy constructor.

virtual Bonmin::HeuristicLocalBranching::~HeuristicLocalBranching ( ) [virtual]

Destructor.


Member Function Documentation

virtual CbcHeuristic* Bonmin::HeuristicLocalBranching::clone ( ) const [inline, virtual]

Virtual constructor.

Implements Bonmin::LocalSolverBasedHeuristic.

Definition at line 26 of file BonHeuristicLocalBranching.hpp.

References HeuristicLocalBranching().

virtual void Bonmin::HeuristicLocalBranching::setModel ( CbcModel *  model) [virtual]

Update model.

virtual void Bonmin::HeuristicLocalBranching::validate ( ) [virtual]

Validate model i.e. sets when_ to 0 if necessary.

int Bonmin::HeuristicLocalBranching::solution ( double &  objectiveValue,
double *  newSolution 
) [virtual]

Runs heuristic.

Implements Bonmin::LocalSolverBasedHeuristic.

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

Register the options common to all local search based heuristics.

Reimplemented from Bonmin::LocalSolverBasedHeuristic.

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

Initiaize using passed options.

Reimplemented from Bonmin::LocalSolverBasedHeuristic.


Member Data Documentation

How often to do (code can change)

Definition at line 51 of file BonHeuristicLocalBranching.hpp.

Number of solutions so we can do something at solution.

Definition at line 53 of file BonHeuristicLocalBranching.hpp.


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