#include <BonBabSetupBase.hpp>
Inheritance diagram for Bonmin::BabSetupBase:
Enums for optionslist parameters | |
enum | VarSelectStra_Enum { MOST_FRACTIONAL = 0, STRONG_BRANCHING, RELIABILITY_BRANCHING, CURVATURE_ESTIMATOR, QP_STRONG_BRANCHING, LP_STRONG_BRANCHING, NLP_STRONG_BRANCHING, OSI_SIMPLE, OSI_STRONG, RANDOM } |
enum | IntParameter { BabLogLevel = 0, BabLogInterval, MaxFailures, FailureBehavior, MaxInfeasible, NumberStrong, MinReliability, MaxNodes, MaxSolutions, MaxIterations, SpecialOption, DisableSos, NumCutPasses, NumCutPassesAtRoot, NumberIntParam } |
Parameters represented by an integer. More... | |
enum | DoubleParameter { CutoffDecr = 0, Cutoff, AllowableGap, AllowableFractionGap, IntTol, MaxTime, NumberDoubleParam } |
Parameters represented by a double. More... | |
BabSetupBase () | |
Default constructor. | |
BabSetupBase (Ipopt::SmartPtr< TMINLP > tminlp) | |
Construct from existing tminlp. | |
BabSetupBase (Ipopt::SmartPtr< TNLPSolver > app) | |
Construct from existing application. | |
BabSetupBase (const OsiTMINLPInterface &nlp) | |
Construct from existing TMINLP interface. | |
BabSetupBase (const BabSetupBase &setup, OsiTMINLPInterface &nlp) | |
Copy constructor with change of nlp. | |
BabSetupBase (const BabSetupBase &other) | |
Copy constructor. | |
virtual BabSetupBase * | clone () const =0 |
virtual copy constructor. | |
virtual BabSetupBase * | clone (OsiTMINLPInterface &nlp) const |
Make a copy with solver replace by one passed . | |
virtual | ~BabSetupBase () |
Virtual destructor. | |
Methods to manipulate options. | |
virtual void | registerOptions () |
Register all the options for this algorithm instance. | |
virtual void | setBabDefaultOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions) |
Setup the defaults options for this algorithm. | |
virtual void | readOptionsFile () |
Get the options from default text file (bonmin.opt) if don't already have them. | |
void | readOptionsFile (std::string fileName) |
Get the options from given fileName. | |
void | readOptionsString (std::string opt_string) |
Get the options from long string containing all. | |
void | readOptionsStream (std::istream &is) |
Get the options from stream. | |
void | mayPrintDoc () |
May print documentation of options if options print_options_documentation is set to yes. | |
void | setOptionsAndJournalist (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions, Ipopt::SmartPtr< Ipopt::OptionsList > options, Ipopt::SmartPtr< Ipopt::Journalist > journalist) |
Set the value for options, output. | |
void | initializeOptionsAndJournalist () |
Initialize the options and the journalist. | |
static void | registerAllOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions) |
Register all the options for this algorithm instance. | |
Public Types | |
typedef std::list< CuttingMethod > | CuttingMethods |
typedef std::list< HeuristicMethod > | HeuristicMethods |
bestBound = 0 | |
DFS | |
Depth First Search. | |
BFS | |
Best First Search. | |
dynamic | |
Dynamic strategy, see CbcBranchActual.hpp for explanations. | |
bestGuess | |
Best guessed integer solution is subtree below, based on pseudo costs. | |
HeapOnly = 0 | |
DiveFromBest | |
dive from top node of the heap untill it gets to a leaf of the tree. | |
ProbedDive | |
Eplore two kids before following on dive. | |
DfsDiveFromBest | |
dive from top node of the heap with more elaborate strategy (see options doc). | |
DfsDiveDynamic | |
Same as DfsDiveFromBest, but after a prescribed number of integer solution are found switch to best-bound and if too many node switches to depth-first. | |
MOST_FRACTIONAL = 0 | |
STRONG_BRANCHING | |
RELIABILITY_BRANCHING | |
CURVATURE_ESTIMATOR | |
QP_STRONG_BRANCHING | |
LP_STRONG_BRANCHING | |
NLP_STRONG_BRANCHING | |
OSI_SIMPLE | |
OSI_STRONG | |
RANDOM | |
BabLogLevel = 0 | |
BabLogInterval | |
Display information every logIntervval nodes. | |
MaxFailures | |
Max number of failures in a branch. | |
FailureBehavior | |
Behavior of the algorithm in the case of a failure. | |
MaxInfeasible | |
Max number of consecutive infeasible problem in a branch before fathoming. | |
NumberStrong | |
Number of candidates for strong branching. | |
MinReliability | |
Minimum reliability before trust pseudo-costs. | |
MaxNodes | |
Global node limit. | |
MaxSolutions | |
limit on number of integer feasible solution. | |
MaxIterations | |
Global iteration limit. | |
SpecialOption | |
Spetial option in particular for Cbc. | |
DisableSos | |
Consider or not SOS constraints. | |
NumCutPasses | |
Number of cut passes at nodes. | |
NumCutPassesAtRoot | |
Number of cut passes at nodes. | |
NumberIntParam | |
Dummy end to size table. | |
CutoffDecr = 0 | |
Cutoff | |
cutoff value | |
AllowableGap | |
Stop if absolute gap is less than this. | |
AllowableFractionGap | |
Stop if relative gap is less than this. | |
IntTol | |
Integer tolerance. | |
MaxTime | |
Global time limit. | |
NumberDoubleParam | |
Dummy end to size table. | |
enum | NodeComparison { bestBound = 0, DFS, BFS, dynamic, bestGuess } |
Strategies for comparing the nodes on the heap. More... | |
enum | TreeTraversal { HeapOnly = 0, DiveFromBest, ProbedDive, DfsDiveFromBest, DfsDiveDynamic } |
Strategies for traversing the tree. More... | |
Public Member Functions | |
void | gatherParametersValues () |
Get the values of base parameters from the options stored. | |
void | gatherParametersValues (Ipopt::SmartPtr< OptionsList > options) |
Get the values of the base parameters from the passed options. | |
Ipopt::SmartPtr< Ipopt::Journalist > | journalist () |
Acces storage of Journalist for output. | |
Ipopt::SmartPtr< Ipopt::OptionsList > | options () |
Acces list of Options. | |
Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions () |
Access registered Options. | |
const vector< OsiObject * > & | objects () const |
Access to extra objects. | |
vector< OsiObject * > & | objects () |
Access to extra objects. | |
Methods to initialize algorithm with various inputs. | |
void | use (const OsiTMINLPInterface &nlp) |
use existing TMINLP interface (containing the options). | |
void | use (Ipopt::SmartPtr< TMINLP > tminlp) |
Read options (if not done before) and create interface using tminlp. | |
void | use (Ipopt::SmartPtr< TMINLP2TNLP > prob) |
use specific instanciation of a TMINLP2TNLP. | |
void | setNonlinearSolver (OsiTMINLPInterface *s) |
Set the non-linear solver used. | |
Elements of the branch-and-bound setup. | |
OsiTMINLPInterface * | nonlinearSolver () |
Pointer to the non-linear solver used. | |
OsiSolverInterface * | continuousSolver () |
Pointer to the continuous solver to use for relaxations. | |
CuttingMethods & | cutGenerators () |
list of cutting planes methods to apply with their frequencies. | |
HeuristicMethods & | heuristics () |
list of Heuristic methods to use. | |
OsiChooseVariable * | branchingMethod () |
branching method to use. | |
NodeComparison | nodeComparisonMethod () |
Method used to compare nodes. | |
TreeTraversal | treeTraversalMethod () |
Method used to traverse tree. | |
int | getIntParameter (const IntParameter &p) const |
Return value of integer parameter. | |
double | getDoubleParameter (const DoubleParameter &p) const |
Return value of double parameter. | |
void | setIntParameter (const IntParameter &p, const int v) |
Return value of integer parameter. | |
void | setDoubleParameter (const DoubleParameter &p, const double v) |
Return value of double parameter. | |
Protected Member Functions | |
void | setPriorities () |
Set the priorities into OsiTMINLPInterface when needed. | |
void | addSos () |
Add SOS constraints to OsiTMINLPInterface when needed. | |
Protected Attributes | |
int | intParam_ [NumberIntParam] |
storage of integer parameters. | |
double | doubleParam_ [NumberDoubleParam] |
storage of double parameters. | |
OsiTMINLPInterface * | nonlinearSolver_ |
Storage of the non-linear solver used. | |
OsiSolverInterface * | continuousSolver_ |
Storage of continuous solver. | |
CuttingMethods | cutGenerators_ |
Cut generation methods. | |
HeuristicMethods | heuristics_ |
Heuristic methods. | |
OsiChooseVariable * | branchingMethod_ |
Branching method. | |
NodeComparison | nodeComparisonMethod_ |
Node comparison method. | |
TreeTraversal | treeTraversalMethod_ |
Tree traversal method. | |
vector< OsiObject * > | objects_ |
Extra object to add to Cbc (not OsiObjects). | |
Ipopt::SmartPtr< Ipopt::Journalist > | journalist_ |
Storage of Journalist for output. | |
Ipopt::SmartPtr< Ipopt::OptionsList > | options_ |
List of Options. | |
Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions_ |
Registered Options. | |
bool | readOptions_ |
flag to say if option file was read. | |
CoinMessageHandler * | lpMessageHandler_ |
separate message handler if continuousSolver_!= nonlinearSolver. | |
Static Protected Attributes | |
static int | defaultIntParam_ [NumberIntParam] |
default values for int parameters. | |
static double | defaultDoubleParam_ [NumberDoubleParam] |
default values for double parameters. | |
Classes | |
struct | CuttingMethod |
Type for cut generation method with its frequency and string identification. More... | |
struct | HeuristicMethod |
Type for heuristic method with its string identification. More... |
Definition at line 22 of file BonBabSetupBase.hpp.
typedef std::list<CuttingMethod> Bonmin::BabSetupBase::CuttingMethods |
Definition at line 59 of file BonBabSetupBase.hpp.
typedef std::list<HeuristicMethod > Bonmin::BabSetupBase::HeuristicMethods |
Definition at line 60 of file BonBabSetupBase.hpp.
Strategies for comparing the nodes on the heap.
bestBound | |
DFS | Depth First Search. |
BFS | Best First Search. |
dynamic | Dynamic strategy, see CbcBranchActual.hpp for explanations. |
bestGuess | Best guessed integer solution is subtree below, based on pseudo costs. |
Definition at line 63 of file BonBabSetupBase.hpp.
Strategies for traversing the tree.
HeapOnly | |
DiveFromBest |
dive from top node of the heap untill it gets to a leaf of the tree.
Uses Bonmin::CbcDiver. |
ProbedDive | Eplore two kids before following on dive. |
DfsDiveFromBest |
dive from top node of the heap with more elaborate strategy (see options doc).
Uses Bonmin::CbcDfsDiver. |
DfsDiveDynamic |
Same as DfsDiveFromBest, but after a prescribed number of integer solution are found switch to best-bound and if too many node switches to depth-first.
Uses Bonmin::CbcDfsDiver. |
Definition at line 73 of file BonBabSetupBase.hpp.
MOST_FRACTIONAL | |
STRONG_BRANCHING | |
RELIABILITY_BRANCHING | |
CURVATURE_ESTIMATOR | |
QP_STRONG_BRANCHING | |
LP_STRONG_BRANCHING | |
NLP_STRONG_BRANCHING | |
OSI_SIMPLE | |
OSI_STRONG | |
RANDOM |
Definition at line 83 of file BonBabSetupBase.hpp.
Parameters represented by an integer.
Definition at line 97 of file BonBabSetupBase.hpp.
Parameters represented by a double.
Definition at line 118 of file BonBabSetupBase.hpp.
Bonmin::BabSetupBase::BabSetupBase | ( | ) |
Default constructor.
Definition at line 53 of file BonBabSetupBase.cpp.
References defaultDoubleParam_, defaultIntParam_, doubleParam_, intParam_, NumberDoubleParam, and NumberIntParam.
Bonmin::BabSetupBase::BabSetupBase | ( | Ipopt::SmartPtr< TMINLP > | tminlp | ) |
Construct from existing tminlp.
Definition at line 170 of file BonBabSetupBase.cpp.
References defaultDoubleParam_, defaultIntParam_, doubleParam_, intParam_, NumberDoubleParam, NumberIntParam, and use().
Bonmin::BabSetupBase::BabSetupBase | ( | Ipopt::SmartPtr< TNLPSolver > | app | ) |
Construct from existing application.
Definition at line 234 of file BonBabSetupBase.cpp.
References defaultDoubleParam_, defaultIntParam_, doubleParam_, intParam_, NumberDoubleParam, and NumberIntParam.
Bonmin::BabSetupBase::BabSetupBase | ( | const OsiTMINLPInterface & | nlp | ) |
Construct from existing TMINLP interface.
Definition at line 204 of file BonBabSetupBase.cpp.
References defaultDoubleParam_, defaultIntParam_, doubleParam_, intParam_, NumberDoubleParam, NumberIntParam, and use().
Bonmin::BabSetupBase::BabSetupBase | ( | const BabSetupBase & | setup, | |
OsiTMINLPInterface & | nlp | |||
) |
Copy constructor with change of nlp.
Definition at line 121 of file BonBabSetupBase.cpp.
References branchingMethod_, clone(), continuousSolver_, cutGenerators_, doubleParam_, heuristics_, intParam_, lpMessageHandler_, nonlinearSolver_, NumberDoubleParam, NumberIntParam, objects_, and options_.
Bonmin::BabSetupBase::BabSetupBase | ( | const BabSetupBase & | other | ) |
Copy constructor.
Definition at line 73 of file BonBabSetupBase.cpp.
References branchingMethod_, clone(), Bonmin::OsiTMINLPInterface::clone(), continuousSolver_, cutGenerators_, doubleParam_, heuristics_, intParam_, lpMessageHandler_, nonlinearSolver_, NumberDoubleParam, NumberIntParam, objects_, and options_.
Bonmin::BabSetupBase::~BabSetupBase | ( | ) | [virtual] |
Virtual destructor.
Definition at line 254 of file BonBabSetupBase.cpp.
References branchingMethod_, continuousSolver_, cutGenerators_, heuristics_, lpMessageHandler_, nonlinearSolver_, and objects_.
virtual BabSetupBase* Bonmin::BabSetupBase::clone | ( | ) | const [pure virtual] |
virtual copy constructor.
Implemented in Bonmin::BonminSetup, and Bonmin::CouenneSetup.
Referenced by BabSetupBase().
BabSetupBase * Bonmin::BabSetupBase::clone | ( | OsiTMINLPInterface & | nlp | ) | const [virtual] |
Make a copy with solver replace by one passed .
Reimplemented in Bonmin::BonminSetup.
Definition at line 190 of file BonBabSetupBase.cpp.
void Bonmin::BabSetupBase::use | ( | const OsiTMINLPInterface & | nlp | ) |
use existing TMINLP interface (containing the options).
Definition at line 225 of file BonBabSetupBase.cpp.
References Bonmin::OsiTMINLPInterface::clone(), Bonmin::TNLPSolver::journalist(), journalist_, nonlinearSolver_, Bonmin::TNLPSolver::options(), options_, readOptions_, Bonmin::TNLPSolver::roptions(), roptions_, and Bonmin::OsiTMINLPInterface::solver().
Referenced by BabSetupBase(), and Bonmin::BonminSetup::initialize().
void Bonmin::BabSetupBase::use | ( | Ipopt::SmartPtr< TMINLP > | tminlp | ) |
Read options (if not done before) and create interface using tminlp.
Definition at line 196 of file BonBabSetupBase.cpp.
References Bonmin::OsiTMINLPInterface::initialize(), journalist_, nonlinearSolver_, options_, readOptionsFile(), and roptions_.
void Bonmin::BabSetupBase::use | ( | Ipopt::SmartPtr< TMINLP2TNLP > | prob | ) |
use specific instanciation of a TMINLP2TNLP.
void Bonmin::BabSetupBase::setNonlinearSolver | ( | OsiTMINLPInterface * | s | ) | [inline] |
Set the non-linear solver used.
Definition at line 161 of file BonBabSetupBase.hpp.
References nonlinearSolver_, and s.
void Bonmin::BabSetupBase::registerOptions | ( | ) | [virtual] |
Register all the options for this algorithm instance.
Reimplemented in Bonmin::BonminSetup, and Bonmin::CouenneSetup.
Definition at line 325 of file BonBabSetupBase.cpp.
References registerAllOptions(), and roptions_.
Referenced by initializeOptionsAndJournalist().
virtual void Bonmin::BabSetupBase::setBabDefaultOptions | ( | Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions | ) | [inline, virtual] |
Setup the defaults options for this algorithm.
Reimplemented in Bonmin::BonminSetup.
Definition at line 172 of file BonBabSetupBase.hpp.
void Bonmin::BabSetupBase::registerAllOptions | ( | Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions | ) | [static] |
Register all the options for this algorithm instance.
Reimplemented in Bonmin::BonminSetup, and Bonmin::CouenneSetup.
Definition at line 331 of file BonBabSetupBase.cpp.
References Bonmin::RegisteredOptions::BonminCategory, e, Bonmin::BonChooseVariable::registerOptions(), Bonmin::CbcDfsDiver::registerOptions(), Bonmin::CbcDiver::registerOptions(), Bonmin::BqpdSolver::registerOptions(), Bonmin::FilterSolver::registerOptions(), and Bonmin::LpBranchingSolver::registerOptions().
Referenced by Bonmin::CouenneSetup::registerAllOptions(), Bonmin::BonminSetup::registerAllOptions(), and registerOptions().
virtual void Bonmin::BabSetupBase::readOptionsFile | ( | ) | [inline, virtual] |
Get the options from default text file (bonmin.opt) if don't already have them.
Reimplemented in Bonmin::CouenneSetup.
Definition at line 178 of file BonBabSetupBase.hpp.
References readOptions_.
Referenced by Bonmin::BonminAmplSetup::initialize(), BM_tm::initialize_core(), main(), Bonmin::CouenneSetup::readOptionsFile(), and use().
void Bonmin::BabSetupBase::readOptionsFile | ( | std::string | fileName | ) |
Get the options from given fileName.
Definition at line 566 of file BonBabSetupBase.cpp.
References initializeOptionsAndJournalist(), journalist_, options_, readOptionsStream(), and roptions_.
void Bonmin::BabSetupBase::readOptionsString | ( | std::string | opt_string | ) |
Get the options from long string containing all.
Definition at line 593 of file BonBabSetupBase.cpp.
References initializeOptionsAndJournalist(), journalist_, options_, readOptionsStream(), and roptions_.
Referenced by Bonmin::BonminAmplSetup::fillOsiInterface(), Bonmin::BonminAmplSetup::initialize(), and BonminSolver::setSolverOptions().
void Bonmin::BabSetupBase::readOptionsStream | ( | std::istream & | is | ) |
Get the options from stream.
Definition at line 603 of file BonBabSetupBase.cpp.
References initializeOptionsAndJournalist(), journalist_, mayPrintDoc(), options_, readOptions_, and roptions_.
Referenced by readOptionsFile(), and readOptionsString().
void Bonmin::BabSetupBase::mayPrintDoc | ( | ) |
May print documentation of options if options print_options_documentation is set to yes.
Definition at line 622 of file BonBabSetupBase.cpp.
References journalist_, options_, and roptions_.
Referenced by Bonmin::BonminAmplSetup::initialize(), and readOptionsStream().
void Bonmin::BabSetupBase::setOptionsAndJournalist | ( | Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions, | |
Ipopt::SmartPtr< Ipopt::OptionsList > | options, | |||
Ipopt::SmartPtr< Ipopt::Journalist > | journalist | |||
) | [inline] |
Set the value for options, output.
..
Definition at line 198 of file BonBabSetupBase.hpp.
References journalist_, options_, and roptions_.
Referenced by Bonmin::BonminAmplSetup::initialize().
void Bonmin::BabSetupBase::initializeOptionsAndJournalist | ( | ) |
Initialize the options and the journalist.
Definition at line 533 of file BonBabSetupBase.cpp.
References journalist_, options_, registerOptions(), and roptions_.
Referenced by main(), readOptionsFile(), readOptionsStream(), readOptionsString(), CouenneSolver::setSolverOptions(), and BonminSolver::setSolverOptions().
OsiTMINLPInterface* Bonmin::BabSetupBase::nonlinearSolver | ( | ) | [inline] |
Pointer to the non-linear solver used.
Definition at line 214 of file BonBabSetupBase.hpp.
References nonlinearSolver_.
Referenced by addSos(), BM_tm::initialize_core(), BM_lp::initialize_new_search_tree_node(), BM_lp::initialize_solver_interface(), Bonmin::CouenneSetup::InitializeCouenne(), interfaceTest(), Bonmin::OACutGenerator2::OACutGenerator2(), BM_lp::process_message(), setPriorities(), BM_lp::test_feasibility_hybrid(), BM_lp::unpack_module_data(), and BM_tm::write_AMPL_solution().
OsiSolverInterface* Bonmin::BabSetupBase::continuousSolver | ( | ) | [inline] |
Pointer to the continuous solver to use for relaxations.
Definition at line 219 of file BonBabSetupBase.hpp.
References continuousSolver_.
Referenced by BM_tm::initialize_core(), and BM_tm::write_AMPL_solution().
CuttingMethods& Bonmin::BabSetupBase::cutGenerators | ( | ) | [inline] |
list of cutting planes methods to apply with their frequencies.
Definition at line 224 of file BonBabSetupBase.hpp.
References cutGenerators_.
Referenced by BM_lp::generate_cuts_in_lp(), Bonmin::CouenneSetup::InitializeCouenne(), and BM_lp::test_feasibility_hybrid().
HeuristicMethods& Bonmin::BabSetupBase::heuristics | ( | ) | [inline] |
list of Heuristic methods to use.
Definition at line 229 of file BonBabSetupBase.hpp.
References heuristics_.
OsiChooseVariable* Bonmin::BabSetupBase::branchingMethod | ( | ) | [inline] |
branching method to use.
Definition at line 234 of file BonBabSetupBase.hpp.
References branchingMethod_.
Referenced by BM_lp::bbBranch(), and BM_lp::unpack_pseudo_costs().
NodeComparison Bonmin::BabSetupBase::nodeComparisonMethod | ( | ) | [inline] |
Method used to compare nodes.
Definition at line 239 of file BonBabSetupBase.hpp.
References nodeComparisonMethod_.
TreeTraversal Bonmin::BabSetupBase::treeTraversalMethod | ( | ) | [inline] |
Method used to traverse tree.
Definition at line 244 of file BonBabSetupBase.hpp.
References treeTraversalMethod_.
int Bonmin::BabSetupBase::getIntParameter | ( | const IntParameter & | p | ) | const [inline] |
Return value of integer parameter.
Definition at line 249 of file BonBabSetupBase.hpp.
References intParam_.
Referenced by addSos(), and Bonmin::BonChooseVariable::BonChooseVariable().
double Bonmin::BabSetupBase::getDoubleParameter | ( | const DoubleParameter & | p | ) | const [inline] |
Return value of double parameter.
Definition at line 254 of file BonBabSetupBase.hpp.
References doubleParam_.
Referenced by Bonmin::OACutGenerator2::OACutGenerator2(), and BM_lp::unpack_module_data().
void Bonmin::BabSetupBase::setIntParameter | ( | const IntParameter & | p, | |
const int | v | |||
) | [inline] |
Return value of integer parameter.
Definition at line 259 of file BonBabSetupBase.hpp.
References intParam_.
void Bonmin::BabSetupBase::setDoubleParameter | ( | const DoubleParameter & | p, | |
const double | v | |||
) | [inline] |
Return value of double parameter.
Definition at line 264 of file BonBabSetupBase.hpp.
References doubleParam_.
void Bonmin::BabSetupBase::gatherParametersValues | ( | ) | [inline] |
Get the values of base parameters from the options stored.
Definition at line 271 of file BonBabSetupBase.hpp.
References options_.
Referenced by Bonmin::BonminSetup::initialize(), and Bonmin::CouenneSetup::InitializeCouenne().
void Bonmin::BabSetupBase::gatherParametersValues | ( | Ipopt::SmartPtr< OptionsList > | options | ) |
Get the values of the base parameters from the passed options.
Definition at line 279 of file BonBabSetupBase.cpp.
References AllowableFractionGap, AllowableGap, BabLogInterval, BabLogLevel, Cutoff, CutoffDecr, DisableSos, doubleParam_, FailureBehavior, intParam_, IntTol, MaxFailures, MaxInfeasible, MaxIterations, MaxNodes, MaxSolutions, MinReliability, MOST_FRACTIONAL, nodeComparisonMethod_, NumberStrong, NumCutPasses, NumCutPassesAtRoot, options_, RELIABILITY_BRANCHING, and treeTraversalMethod_.
Ipopt::SmartPtr<Ipopt::Journalist> Bonmin::BabSetupBase::journalist | ( | ) | [inline] |
Acces storage of Journalist for output.
Definition at line 278 of file BonBabSetupBase.hpp.
References journalist_.
Referenced by Bonmin::BonChooseVariable::BonChooseVariable(), Bonmin::BonminAmplSetup::fillOsiInterface(), Bonmin::BonminAmplSetup::initialize(), Bonmin::CouenneSetup::InitializeCouenne(), and CouenneSolver::solve().
Ipopt::SmartPtr<Ipopt::OptionsList> Bonmin::BabSetupBase::options | ( | ) | [inline] |
Acces list of Options.
Definition at line 284 of file BonBabSetupBase.hpp.
References options_.
Referenced by BM_lp::bbBranch(), Bonmin::BonChooseVariable::BonChooseVariable(), CouenneChooseStrong::CouenneChooseStrong(), Bonmin::EcpCuts::EcpCuts(), Bonmin::BonminAmplSetup::initialize(), Bonmin::CouenneSetup::InitializeCouenne(), main(), Bonmin::OACutGenerator2::OACutGenerator2(), Bonmin::OaDecompositionBase::OaDecompositionBase(), Bonmin::OaNlpOptim::OaNlpOptim(), CouenneSolver::setSolverOptions(), BonminSolver::setSolverOptions(), CouenneSolver::solve(), and BM_lp::unpack_module_data().
Ipopt::SmartPtr<Bonmin::RegisteredOptions> Bonmin::BabSetupBase::roptions | ( | ) | [inline] |
Access registered Options.
Definition at line 290 of file BonBabSetupBase.hpp.
References roptions_.
Referenced by Bonmin::BonminAmplSetup::fillOsiInterface(), Bonmin::BonminAmplSetup::initialize(), Bonmin::CouenneSetup::InitializeCouenne(), main(), Bonmin::CouenneSetup::registerOptions(), BonminSolver::setSolverOptions(), and CouenneSolver::solve().
const vector<OsiObject *>& Bonmin::BabSetupBase::objects | ( | ) | const [inline] |
Access to extra objects.
Definition at line 296 of file BonBabSetupBase.hpp.
References objects_.
Referenced by addSos(), Bonmin::CouenneSetup::InitializeCouenne(), and setPriorities().
vector<OsiObject *>& Bonmin::BabSetupBase::objects | ( | ) | [inline] |
void Bonmin::BabSetupBase::setPriorities | ( | ) | [protected] |
Set the priorities into OsiTMINLPInterface when needed.
Definition at line 654 of file BonBabSetupBase.cpp.
References Bonmin::OsiTMINLPInterface::getBranchingDirections(), Bonmin::OsiTMINLPInterface::getPriorities(), Bonmin::OsiTMINLPInterface::getUpPsCosts(), n, nonlinearSolver(), and objects().
Referenced by Bonmin::BonminSetup::initializeBBB().
void Bonmin::BabSetupBase::addSos | ( | ) | [protected] |
Add SOS constraints to OsiTMINLPInterface when needed.
Definition at line 691 of file BonBabSetupBase.cpp.
References DisableSos, getIntParameter(), Bonmin::OsiTMINLPInterface::getPriorities(), Bonmin::TMINLP::SosInfo::indices, Bonmin::OsiTMINLPInterface::model(), nonlinearSolver(), Bonmin::TMINLP::SosInfo::num, objects(), Bonmin::TMINLP::SosInfo::priorities, Bonmin::TMINLP::sosConstraints(), Bonmin::TMINLP::SosInfo::starts, Bonmin::TMINLP::SosInfo::types, and Bonmin::TMINLP::SosInfo::weights.
Referenced by Bonmin::BonminSetup::initializeBBB().
int Bonmin::BabSetupBase::intParam_[NumberIntParam] [protected] |
storage of integer parameters.
Definition at line 314 of file BonBabSetupBase.hpp.
Referenced by BabSetupBase(), gatherParametersValues(), getIntParameter(), Bonmin::BonminSetup::initializeBBB(), Bonmin::BonminSetup::initializeBHyb(), Bonmin::CouenneSetup::InitializeCouenne(), and setIntParameter().
int Bonmin::BabSetupBase::defaultIntParam_ [static, protected] |
Initial value:
{ 1 , 100 , 2 , 0 , 0 , 5 , 2 , COIN_INT_MAX , COIN_INT_MAX , COIN_INT_MAX , 0 , 0 , 1 , 20 }
Definition at line 316 of file BonBabSetupBase.hpp.
Referenced by BabSetupBase().
double Bonmin::BabSetupBase::doubleParam_[NumberDoubleParam] [protected] |
storage of double parameters.
Definition at line 318 of file BonBabSetupBase.hpp.
Referenced by BabSetupBase(), gatherParametersValues(), Bonmin::CouenneSetup::getDoubleParameter(), getDoubleParameter(), Bonmin::CouenneSetup::setDoubleParameter(), and setDoubleParameter().
double Bonmin::BabSetupBase::defaultDoubleParam_ [static, protected] |
Initial value:
{ 0 , COIN_DBL_MAX , 0 , 0 , 1e-09 , COIN_DBL_MAX , }
Definition at line 320 of file BonBabSetupBase.hpp.
Referenced by BabSetupBase().
OsiTMINLPInterface* Bonmin::BabSetupBase::nonlinearSolver_ [protected] |
Storage of the non-linear solver used.
Definition at line 322 of file BonBabSetupBase.hpp.
Referenced by BabSetupBase(), Bonmin::BonminSetup::BonminSetup(), Bonmin::BonminSetup::initializeBBB(), Bonmin::BonminSetup::initializeBHyb(), Bonmin::CouenneSetup::InitializeCouenne(), nonlinearSolver(), setNonlinearSolver(), use(), and ~BabSetupBase().
OsiSolverInterface* Bonmin::BabSetupBase::continuousSolver_ [protected] |
Storage of continuous solver.
Definition at line 324 of file BonBabSetupBase.hpp.
Referenced by BabSetupBase(), Bonmin::BonminSetup::BonminSetup(), continuousSolver(), Bonmin::BonminSetup::initializeBBB(), Bonmin::BonminSetup::initializeBHyb(), Bonmin::CouenneSetup::InitializeCouenne(), and ~BabSetupBase().
CuttingMethods Bonmin::BabSetupBase::cutGenerators_ [protected] |
Cut generation methods.
Definition at line 326 of file BonBabSetupBase.hpp.
Referenced by Bonmin::CouenneSetup::addMilpCutGenerators(), Bonmin::BonminSetup::addMilpCutGenerators(), BabSetupBase(), cutGenerators(), Bonmin::BonminSetup::initializeBHyb(), and ~BabSetupBase().
HeuristicMethods Bonmin::BabSetupBase::heuristics_ [protected] |
Heuristic methods.
Definition at line 328 of file BonBabSetupBase.hpp.
Referenced by BabSetupBase(), heuristics(), Bonmin::BonminSetup::initializeBHyb(), Bonmin::CouenneSetup::InitializeCouenne(), and ~BabSetupBase().
OsiChooseVariable* Bonmin::BabSetupBase::branchingMethod_ [protected] |
Branching method.
Definition at line 330 of file BonBabSetupBase.hpp.
Referenced by BabSetupBase(), branchingMethod(), Bonmin::BonminSetup::initializeBBB(), Bonmin::CouenneSetup::InitializeCouenne(), and ~BabSetupBase().
Node comparison method.
Definition at line 332 of file BonBabSetupBase.hpp.
Referenced by gatherParametersValues(), Bonmin::CouenneSetup::InitializeCouenne(), and nodeComparisonMethod().
Tree traversal method.
Definition at line 334 of file BonBabSetupBase.hpp.
Referenced by gatherParametersValues(), and treeTraversalMethod().
vector<OsiObject *> Bonmin::BabSetupBase::objects_ [protected] |
Extra object to add to Cbc (not OsiObjects).
Definition at line 336 of file BonBabSetupBase.hpp.
Referenced by BabSetupBase(), objects(), and ~BabSetupBase().
Ipopt::SmartPtr<Ipopt::Journalist> Bonmin::BabSetupBase::journalist_ [protected] |
Storage of Journalist for output.
Definition at line 340 of file BonBabSetupBase.hpp.
Referenced by Bonmin::BonminAmplSetup::fillOsiInterface(), Bonmin::BonminAmplSetup::initialize(), initializeOptionsAndJournalist(), journalist(), mayPrintDoc(), readOptionsFile(), readOptionsStream(), readOptionsString(), setOptionsAndJournalist(), and use().
Ipopt::SmartPtr<Ipopt::OptionsList> Bonmin::BabSetupBase::options_ [protected] |
List of Options.
Definition at line 343 of file BonBabSetupBase.hpp.
Referenced by Bonmin::CouenneSetup::addMilpCutGenerators(), Bonmin::BonminSetup::addMilpCutGenerators(), BabSetupBase(), Bonmin::BonminSetup::BonminSetup(), Bonmin::BonminAmplSetup::fillOsiInterface(), gatherParametersValues(), Bonmin::BonminSetup::getAlgorithm(), Bonmin::BonminSetup::initialize(), Bonmin::BonminAmplSetup::initialize(), Bonmin::BonminSetup::initializeBBB(), Bonmin::BonminSetup::initializeBHyb(), Bonmin::CouenneSetup::InitializeCouenne(), initializeOptionsAndJournalist(), mayPrintDoc(), options(), readOptionsFile(), readOptionsStream(), readOptionsString(), setOptionsAndJournalist(), and use().
Ipopt::SmartPtr<Bonmin::RegisteredOptions> Bonmin::BabSetupBase::roptions_ [protected] |
Registered Options.
Definition at line 346 of file BonBabSetupBase.hpp.
Referenced by Bonmin::BonminAmplSetup::fillOsiInterface(), Bonmin::BonminAmplSetup::initialize(), initializeOptionsAndJournalist(), mayPrintDoc(), readOptionsFile(), readOptionsStream(), readOptionsString(), Bonmin::BonminSetup::registerOptions(), registerOptions(), roptions(), setOptionsAndJournalist(), and use().
bool Bonmin::BabSetupBase::readOptions_ [protected] |
flag to say if option file was read.
Definition at line 349 of file BonBabSetupBase.hpp.
Referenced by Bonmin::CouenneSetup::readOptionsFile(), readOptionsFile(), readOptionsStream(), and use().
CoinMessageHandler* Bonmin::BabSetupBase::lpMessageHandler_ [protected] |
separate message handler if continuousSolver_!= nonlinearSolver.
Definition at line 351 of file BonBabSetupBase.hpp.
Referenced by BabSetupBase(), Bonmin::BonminSetup::BonminSetup(), Bonmin::BonminSetup::initializeBHyb(), and ~BabSetupBase().