Bonmin::CouenneSetup Class Reference

#include <BonCouenneSetup.hpp>

Inheritance diagram for Bonmin::CouenneSetup:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CouenneSetup ()
 Default constructor.
 CouenneSetup (const CouenneSetup &other)
 Copy constructor.
virtual BabSetupBaseclone () const
 virtual copy constructor.
virtual ~CouenneSetup ()
 destructor
void InitializeCouenne (char **&argv)
 Initialize from command line arguments.
virtual void registerOptions ()
 register the options
virtual void readOptionsFile ()
 Get the basic options if don't already have them.
CouenneCutGenerator * couennePtr () const
 return pointer to cut generator (used to get pointer to problem)
bool displayStats ()
 true if one wants to display statistics at the end of program
void addMilpCutGenerators ()
 Add milp cut generators according to options.
void setDoubleParameter (const DoubleParameter &p, const double val)
 modify parameter (used for MaxTime)
double getDoubleParameter (const DoubleParameter &p) const
 modify parameter (used for MaxTime)

Static Public Member Functions

static void registerAllOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
 Register all Couenne options.

Private Attributes

SmartPtr< SmartAslaslfg_
CouenneCutGenerator * CouennePtr_
 hold a reference to Couenne cut generator to delete it at last.
bool displayStats_
 true if one wants to display statistics at the end of program

Detailed Description

Definition at line 31 of file BonCouenneSetup.hpp.


Constructor & Destructor Documentation

Bonmin::CouenneSetup::CouenneSetup (  )  [inline]

Default constructor.

Definition at line 34 of file BonCouenneSetup.hpp.

Referenced by clone().

Bonmin::CouenneSetup::CouenneSetup ( const CouenneSetup other  )  [inline]

Copy constructor.

Definition at line 41 of file BonCouenneSetup.hpp.

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

destructor

Definition at line 72 of file BonCouenneSetup.cpp.


Member Function Documentation

virtual BabSetupBase* Bonmin::CouenneSetup::clone (  )  const [inline, virtual]

virtual copy constructor.

Implements Bonmin::BabSetupBase.

Definition at line 47 of file BonCouenneSetup.hpp.

References CouenneSetup().

void Bonmin::CouenneSetup::InitializeCouenne ( char **&  argv  ) 

Initialize from command line arguments.

Change default value for failure behavior so that code doesn't crash when Ipopt does not solve a sub-problem.

Set the output level for the journalist for all Couenne categories. We probably want to make that a bit more flexible later.

setup initial heuristic (in principle it should only run once...)

Definition at line 77 of file BonCouenneSetup.cpp.

References addMilpCutGenerators(), Bonmin::BabSetupBase::addSos(), aslfg_, Bonmin::BabSetupBase::bestBound, Bonmin::BabSetupBase::branchingMethod_, Bonmin::BabSetupBase::continuousSolver(), Bonmin::BabSetupBase::continuousSolver_, CouennePtr_, Bonmin::BabSetupBase::cutGenerators(), displayStats_, Bonmin::BabSetupBase::gatherParametersValues(), getDoubleParameter(), Bonmin::BabSetupBase::heuristics_, Bonmin::AuxInfo::infeasibleNode(), Bonmin::BabSetupBase::intParam_, Bonmin::BabSetupBase::journalist(), Bonmin::maxNlpInf_0, Bonmin::BabSetupBase::MaxTime, Bonmin::BabSetupBase::nodeComparisonMethod_, Bonmin::BabSetupBase::nonlinearSolver(), Bonmin::BabSetupBase::nonlinearSolver_, Bonmin::BabSetupBase::NumCutPasses, Bonmin::BabSetupBase::objects(), Bonmin::BabSetupBase::options(), Bonmin::BabSetupBase::options_, Bonmin::BabSetupBase::OSI_SIMPLE, Bonmin::BabSetupBase::OSI_STRONG, Bonmin::CouenneInterface::readAmplNlFile(), readASLfg(), readOptionsFile(), Bonmin::BabSetupBase::roptions(), s, Bonmin::NlpSolveHeuristic::setCouenneProblem(), Bonmin::NlpSolveHeuristic::setMaxNlpInf(), Bonmin::NlpSolveHeuristic::setNlp(), Bonmin::NlpSolveHeuristic::setNumberSolvePerLevel(), and Bonmin::BabSetupBase::SpecialOption.

Referenced by main().

void Bonmin::CouenneSetup::registerOptions (  )  [virtual]

register the options

Reimplemented from Bonmin::BabSetupBase.

Definition at line 395 of file BonCouenneSetup.cpp.

References registerAllOptions(), and Bonmin::BabSetupBase::roptions().

void Bonmin::CouenneSetup::registerAllOptions ( Ipopt::SmartPtr< Bonmin::RegisteredOptions roptions  )  [static]

Register all Couenne options.

Reimplemented from Bonmin::BabSetupBase.

Definition at line 401 of file BonCouenneSetup.cpp.

References Bonmin::BabSetupBase::registerAllOptions(), and Bonmin::BonCbcFullNodeInfo::registerOptions().

Referenced by registerOptions().

virtual void Bonmin::CouenneSetup::readOptionsFile (  )  [inline, virtual]

Get the basic options if don't already have them.

Reimplemented from Bonmin::BabSetupBase.

Definition at line 63 of file BonCouenneSetup.hpp.

References Bonmin::BabSetupBase::readOptions_, and Bonmin::BabSetupBase::readOptionsFile().

Referenced by InitializeCouenne().

CouenneCutGenerator* Bonmin::CouenneSetup::couennePtr (  )  const [inline]

return pointer to cut generator (used to get pointer to problem)

Definition at line 69 of file BonCouenneSetup.hpp.

References CouennePtr_.

bool Bonmin::CouenneSetup::displayStats (  )  [inline]

true if one wants to display statistics at the end of program

Definition at line 73 of file BonCouenneSetup.hpp.

References displayStats_.

Referenced by main().

void Bonmin::CouenneSetup::addMilpCutGenerators (  ) 

Add milp cut generators according to options.

Definition at line 479 of file BonCouenneSetup.cpp.

References Bonmin::BabSetupBase::cutGenerators_, and Bonmin::BabSetupBase::options_.

Referenced by InitializeCouenne().

void Bonmin::CouenneSetup::setDoubleParameter ( const DoubleParameter p,
const double  val 
) [inline]

modify parameter (used for MaxTime)

Definition at line 80 of file BonCouenneSetup.hpp.

References Bonmin::BabSetupBase::doubleParam_.

Referenced by main().

double Bonmin::CouenneSetup::getDoubleParameter ( const DoubleParameter p  )  const [inline]

modify parameter (used for MaxTime)

Definition at line 84 of file BonCouenneSetup.hpp.

References Bonmin::BabSetupBase::doubleParam_.

Referenced by InitializeCouenne().


Member Data Documentation

SmartPtr<SmartAsl> Bonmin::CouenneSetup::aslfg_ [private]

Definition at line 88 of file BonCouenneSetup.hpp.

Referenced by InitializeCouenne().

CouenneCutGenerator* Bonmin::CouenneSetup::CouennePtr_ [private]

hold a reference to Couenne cut generator to delete it at last.

The alternative would be to clone it every time the CouenneSolverInterface is cloned (that is, at each call of Optimality-based bound tightening).

Definition at line 94 of file BonCouenneSetup.hpp.

Referenced by couennePtr(), and InitializeCouenne().

bool Bonmin::CouenneSetup::displayStats_ [private]

true if one wants to display statistics at the end of program

Definition at line 97 of file BonCouenneSetup.hpp.

Referenced by displayStats(), and InitializeCouenne().


The documentation for this class was generated from the following files:
Generated on Tue Sep 30 03:02:58 2008 by  doxygen 1.4.7