Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Bonmin::RegisteredOptions Class Reference

Class to add a few more information to Ipopt::RegisteredOptions. More...

#include <BonRegisteredOptions.hpp>

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

Public Types

enum  ExtraOptInfosBits {
  validInHybrid =0, validInQG, validInOA, validInBBB,
  validInEcp, validIniFP, validInCbc
}
 
enum  ExtraCategoriesInfo {
  BonminCategory = 0, IpoptCategory, FilterCategory, BqpdCategory,
  CouenneCategory, UndocumentedCategory
}
 

Public Member Functions

 RegisteredOptions ()
 Standard constructor. More...
 
 ~RegisteredOptions ()
 Standard destructor. More...
 
void SetRegisteringCategory (const std::string &registering_category, const ExtraCategoriesInfo extra)
 Set registering category with extra information. More...
 
void optionExists (const std::string &option)
 throw if option does not exists. More...
 
void setOptionExtraInfo (const std::string &option, int code)
 Set extra information for option. More...
 
void optionValidForHybrid (const std::string &option)
 Set that option is valid for hybrid. More...
 
void optionValidForBQG (const std::string &option)
 Set that option is valid for QuesadaGrossmann. More...
 
void optionValidForBOA (const std::string &option)
 Set that option is valid for Outer approximation. More...
 
void optionValidForBBB (const std::string &option)
 Set that option is valid for pure branch-and-bound. More...
 
void optionValidForBEcp (const std::string &option)
 Set that option is valid for B-Ecp. More...
 
void optionValidForBiFP (const std::string &option)
 Set that option is valid for B-iFP. More...
 
void optionValidForCbc (const std::string &option)
 Set that option is valid for Cbc. More...
 
bool isValidForHybrid (const std::string &option)
 Say if option is valid for hybrid. More...
 
bool isValidForBQG (const std::string &option)
 Say if option is valid for QuesadaGrossmann. More...
 
bool isValidForBOA (const std::string &option)
 Say if option is valid for Outer approximation. More...
 
bool isValidForBBB (const std::string &option)
 Say if option is valid for pure branch-and-bound. More...
 
bool isValidForBEcp (const std::string &option)
 Say if option is valid for B-Ecp. More...
 
bool isValidForBiFP (const std::string &option)
 Say if option is valid for B-iFP. More...
 
bool isValidForCbc (const std::string &option)
 Say if option is valid for Cbc. More...
 
void writeLatexOptionsTable (std::ostream &of, ExtraCategoriesInfo which)
 Output Latex table of options. More...
 
void writeHtmlOptionsTable (std::ostream &of, ExtraCategoriesInfo which)
 Output html table of options. More...
 
void writeLatexHtmlDoc (std::ostream &of, ExtraCategoriesInfo which)
 Output Latex/Html ooptions documentation. More...
 
void writeBonminOpt (std::ostream &os, ExtraCategoriesInfo which)
 Ouptut a bonmin.opt file with options default values and short descriptions. More...
 
ExtraCategoriesInfo categoriesInfo (const std::string &s)
 Get info about what a category is taking care of (e.g., Ipopt, Bonmin, FilterSQP,...) . More...
 
void fillAmplOptionList (ExtraCategoriesInfo which, Ipopt::AmplOptionsList *amplOptList)
 

Private Member Functions

void chooseOptions (ExtraCategoriesInfo which, std::list< Ipopt::RegisteredOption * > &options)
 Output Latex table of options. More...
 
void writeHtmlOptionsTable (std::ostream &os, std::list< Ipopt::RegisteredOption * > &options)
 Output html table of options. More...
 

Private Attributes

std::map< std::string, intbonOptInfos_
 Store extra Informations on Bonmin options. More...
 
std::map< std::string,
ExtraCategoriesInfo
categoriesInfos_
 Store extra Informations on Registering categories (is bonmin, filterSqp...). More...
 

Detailed Description

Class to add a few more information to Ipopt::RegisteredOptions.

In particular, it allows to store code to indicate in which algorithm option is available. It also allows to table summing up all the options both in LaTex and html.

Definition at line 30 of file BonRegisteredOptions.hpp.

Member Enumeration Documentation

Enumerator
validInHybrid 
validInQG 

Say that option is valid in Quesada Grossmann method (2).

validInOA 

Say that option is valid in outer approximation dec (4).

validInBBB 

Say that option is valid in the pure branch-and-bound (8).

validInEcp 

Say that option is valid in the Ecp (16).

validIniFP 

Say that option is valid in the iFP (32).

validInCbc 

Say that option is valid when using Cbc_Par (64).

Definition at line 32 of file BonRegisteredOptions.hpp.

Enumerator
BonminCategory 
IpoptCategory 

Option category for Ipopt.

FilterCategory 

Option category for FilterSqp.

BqpdCategory 

Option category for Bqpd.

CouenneCategory 

Option category for Couenne.

UndocumentedCategory 

For undocumented options.

Definition at line 52 of file BonRegisteredOptions.hpp.

Constructor & Destructor Documentation

Bonmin::RegisteredOptions::RegisteredOptions ( )
inline

Standard constructor.

Definition at line 61 of file BonRegisteredOptions.hpp.

Bonmin::RegisteredOptions::~RegisteredOptions ( )
inline

Standard destructor.

Definition at line 66 of file BonRegisteredOptions.hpp.

Member Function Documentation

void Bonmin::RegisteredOptions::SetRegisteringCategory ( const std::string &  registering_category,
const ExtraCategoriesInfo  extra 
)
inline

Set registering category with extra information.

Definition at line 71 of file BonRegisteredOptions.hpp.

void Bonmin::RegisteredOptions::optionExists ( const std::string &  option)
inline

throw if option does not exists.

Definition at line 77 of file BonRegisteredOptions.hpp.

void Bonmin::RegisteredOptions::setOptionExtraInfo ( const std::string &  option,
int  code 
)
inline

Set extra information for option.

Definition at line 86 of file BonRegisteredOptions.hpp.

void Bonmin::RegisteredOptions::optionValidForHybrid ( const std::string &  option)
inline

Set that option is valid for hybrid.

Definition at line 92 of file BonRegisteredOptions.hpp.

void Bonmin::RegisteredOptions::optionValidForBQG ( const std::string &  option)
inline

Set that option is valid for QuesadaGrossmann.

Definition at line 97 of file BonRegisteredOptions.hpp.

void Bonmin::RegisteredOptions::optionValidForBOA ( const std::string &  option)
inline

Set that option is valid for Outer approximation.

Definition at line 102 of file BonRegisteredOptions.hpp.

void Bonmin::RegisteredOptions::optionValidForBBB ( const std::string &  option)
inline

Set that option is valid for pure branch-and-bound.

Definition at line 107 of file BonRegisteredOptions.hpp.

void Bonmin::RegisteredOptions::optionValidForBEcp ( const std::string &  option)
inline

Set that option is valid for B-Ecp.

Definition at line 112 of file BonRegisteredOptions.hpp.

void Bonmin::RegisteredOptions::optionValidForBiFP ( const std::string &  option)
inline

Set that option is valid for B-iFP.

Definition at line 117 of file BonRegisteredOptions.hpp.

void Bonmin::RegisteredOptions::optionValidForCbc ( const std::string &  option)
inline

Set that option is valid for Cbc.

Definition at line 122 of file BonRegisteredOptions.hpp.

bool Bonmin::RegisteredOptions::isValidForHybrid ( const std::string &  option)
inline

Say if option is valid for hybrid.

Definition at line 128 of file BonRegisteredOptions.hpp.

bool Bonmin::RegisteredOptions::isValidForBQG ( const std::string &  option)
inline

Say if option is valid for QuesadaGrossmann.

Definition at line 136 of file BonRegisteredOptions.hpp.

bool Bonmin::RegisteredOptions::isValidForBOA ( const std::string &  option)
inline

Say if option is valid for Outer approximation.

Definition at line 144 of file BonRegisteredOptions.hpp.

bool Bonmin::RegisteredOptions::isValidForBBB ( const std::string &  option)
inline

Say if option is valid for pure branch-and-bound.

Definition at line 152 of file BonRegisteredOptions.hpp.

bool Bonmin::RegisteredOptions::isValidForBEcp ( const std::string &  option)
inline

Say if option is valid for B-Ecp.

Definition at line 161 of file BonRegisteredOptions.hpp.

bool Bonmin::RegisteredOptions::isValidForBiFP ( const std::string &  option)
inline

Say if option is valid for B-iFP.

Definition at line 170 of file BonRegisteredOptions.hpp.

bool Bonmin::RegisteredOptions::isValidForCbc ( const std::string &  option)
inline

Say if option is valid for Cbc.

Definition at line 179 of file BonRegisteredOptions.hpp.

void Bonmin::RegisteredOptions::writeLatexOptionsTable ( std::ostream &  of,
ExtraCategoriesInfo  which 
)

Output Latex table of options.

Definition at line 165 of file BonRegisteredOptions.cpp.

void Bonmin::RegisteredOptions::writeHtmlOptionsTable ( std::ostream &  of,
ExtraCategoriesInfo  which 
)

Output html table of options.

Definition at line 251 of file BonRegisteredOptions.cpp.

void Bonmin::RegisteredOptions::writeLatexHtmlDoc ( std::ostream &  os,
ExtraCategoriesInfo  which 
)

Output Latex/Html ooptions documentation.

Output Latex/Html options documentation.

Definition at line 306 of file BonRegisteredOptions.cpp.

void Bonmin::RegisteredOptions::writeBonminOpt ( std::ostream &  os,
ExtraCategoriesInfo  which 
)

Ouptut a bonmin.opt file with options default values and short descriptions.

Ouptut a bonmin.opt file with options default values and short descritpions.

Definition at line 338 of file BonRegisteredOptions.cpp.

ExtraCategoriesInfo Bonmin::RegisteredOptions::categoriesInfo ( const std::string &  s)
inline

Get info about what a category is taking care of (e.g., Ipopt, Bonmin, FilterSQP,...) .

Definition at line 200 of file BonRegisteredOptions.hpp.

void Bonmin::RegisteredOptions::fillAmplOptionList ( ExtraCategoriesInfo  which,
Ipopt::AmplOptionsList *  amplOptList 
)

Definition at line 29 of file BonAmplTMINLP.cpp.

void Bonmin::RegisteredOptions::chooseOptions ( ExtraCategoriesInfo  which,
std::list< Ipopt::RegisteredOption * > &  sortedOptions 
)
private

Output Latex table of options.

choose options.

Definition at line 236 of file BonRegisteredOptions.cpp.

void Bonmin::RegisteredOptions::writeHtmlOptionsTable ( std::ostream &  os,
std::list< Ipopt::RegisteredOption * > &  options 
)
private

Output html table of options.

Definition at line 264 of file BonRegisteredOptions.cpp.

Member Data Documentation

std::map<std::string, int> Bonmin::RegisteredOptions::bonOptInfos_
private

Store extra Informations on Bonmin options.

Definition at line 217 of file BonRegisteredOptions.hpp.

std::map<std::string, ExtraCategoriesInfo> Bonmin::RegisteredOptions::categoriesInfos_
private

Store extra Informations on Registering categories (is bonmin, filterSqp...).

Definition at line 220 of file BonRegisteredOptions.hpp.


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