|
Cbc
2.10.5
|
Very simple class for setting parameters. More...
#include <CbcParam.hpp>
Collaboration diagram for CbcParam:Public Member Functions | |
Constructor and destructor | |
| CbcParam () | |
| Constructors. More... | |
| CbcParam (std::string name, std::string help, double lower, double upper, CbcParameterType type, bool display=true) | |
| CbcParam (std::string name, std::string help, int lower, int upper, CbcParameterType type, bool display=true) | |
| CbcParam (std::string name, std::string help, std::string firstValue, CbcParameterType type, int defaultIndex=0, bool display=true) | |
| CbcParam (std::string name, std::string help, CbcParameterType type, int indexNumber=-1, bool display=true) | |
| CbcParam (const CbcParam &) | |
| Copy constructor. More... | |
| CbcParam & | operator= (const CbcParam &rhs) |
| Assignment operator. This copies the data. More... | |
| ~CbcParam () | |
| Destructor. More... | |
Private Attributes | |
data | |
We might as well throw all type data in - could derive? | |
| CbcParameterType | type_ |
| double | lowerDoubleValue_ |
| If double == okay. More... | |
| double | upperDoubleValue_ |
| int | lowerIntValue_ |
| If int == okay. More... | |
| int | upperIntValue_ |
| unsigned int | lengthName_ |
| unsigned int | lengthMatch_ |
| std::vector< std::string > | definedKeyWords_ |
| set of valid strings More... | |
| std::string | name_ |
| Name. More... | |
| std::string | shortHelp_ |
| Short help. More... | |
| std::string | longHelp_ |
| Long help. More... | |
| CbcParameterType | action_ |
| Action. More... | |
| int | currentKeyWord_ |
| Current keyWord (if a keyword parameter) More... | |
| bool | display_ |
| Display on ? More... | |
| int | intValue_ |
| Integer parameter - current value. More... | |
| double | doubleValue_ |
| Double parameter - current value. More... | |
| std::string | stringValue_ |
| String parameter - current value. More... | |
| int | indexNumber_ |
| index number to use for display purposes More... | |
stuff | |
| void | append (std::string keyWord) |
| Insert string (only valid for keywords) More... | |
| void | addHelp (std::string keyWord) |
| Adds one help line. More... | |
| std::string | name () const |
| Returns name. More... | |
| std::string | shortHelp () const |
| Returns short help. More... | |
| int | setDoubleParameter (CbcModel &model, double value) const |
| Sets a double parameter (nonzero code if error) More... | |
| double | doubleParameter (CbcModel &model) const |
| Gets a double parameter. More... | |
| int | setIntParameter (CbcModel &model, int value) const |
| Sets a int parameter (nonzero code if error) More... | |
| int | intParameter (CbcModel &model) const |
| Gets a int parameter. More... | |
| int | setDoubleParameter (ClpSimplex *model, double value) const |
| Sets a double parameter (nonzero code if error) More... | |
| double | doubleParameter (ClpSimplex *model) const |
| Gets a double parameter. More... | |
| int | setIntParameter (ClpSimplex *model, int value) const |
| Sets a int parameter (nonzero code if error) More... | |
| int | intParameter (ClpSimplex *model) const |
| Gets a int parameter. More... | |
| int | setDoubleParameter (OsiSolverInterface *model, double value) const |
| Sets a double parameter (nonzero code if error) More... | |
| double | doubleParameter (OsiSolverInterface *model) const |
| Gets a double parameter. More... | |
| int | setIntParameter (OsiSolverInterface *model, int value) const |
| Sets a int parameter (nonzero code if error) More... | |
| int | intParameter (OsiSolverInterface *model) const |
| Gets a int parameter. More... | |
| int | checkDoubleParameter (double value) const |
| Checks a double parameter (nonzero code if error) More... | |
| std::string | matchName () const |
| Returns name which could match. More... | |
| int | parameterOption (std::string check) const |
| Returns parameter option which matches (-1 if none) More... | |
| void | printOptions () const |
| Prints parameter options. More... | |
| std::string | currentOption () const |
| Returns current parameter option. More... | |
| void | setCurrentOption (int value) |
| Sets current parameter option. More... | |
| void | setIntValue (int value) |
| Sets int value. More... | |
| int | intValue () const |
| void | setDoubleValue (double value) |
| Sets double value. More... | |
| double | doubleValue () const |
| void | setStringValue (std::string value) |
| Sets string value. More... | |
| std::string | stringValue () const |
| int | matches (std::string input) const |
| Returns 1 if matches minimum, 2 if matches less, 0 if not matched. More... | |
| CbcParameterType | type () const |
| type More... | |
| bool | displayThis () const |
| whether to display More... | |
| void | setLonghelp (const std::string help) |
| Set Long help. More... | |
| void | printLongHelp () const |
| Print Long help. More... | |
| void | printString () const |
| Print action and string. More... | |
| int | indexNumber () const |
| type for classification More... | |
| void | gutsOfConstructor () |
| gutsOfConstructor More... | |
Very simple class for setting parameters.
Definition at line 152 of file CbcParam.hpp.
| CbcParam::CbcParam | ( | ) |
Constructors.
| CbcParam::CbcParam | ( | std::string | name, |
| std::string | help, | ||
| double | lower, | ||
| double | upper, | ||
| CbcParameterType | type, | ||
| bool | display = true |
||
| ) |
| CbcParam::CbcParam | ( | std::string | name, |
| std::string | help, | ||
| int | lower, | ||
| int | upper, | ||
| CbcParameterType | type, | ||
| bool | display = true |
||
| ) |
| CbcParam::CbcParam | ( | std::string | name, |
| std::string | help, | ||
| std::string | firstValue, | ||
| CbcParameterType | type, | ||
| int | defaultIndex = 0, |
||
| bool | display = true |
||
| ) |
| CbcParam::CbcParam | ( | std::string | name, |
| std::string | help, | ||
| CbcParameterType | type, | ||
| int | indexNumber = -1, |
||
| bool | display = true |
||
| ) |
| CbcParam::CbcParam | ( | const CbcParam & | ) |
Copy constructor.
| CbcParam::~CbcParam | ( | ) |
Destructor.
| void CbcParam::append | ( | std::string | keyWord | ) |
Insert string (only valid for keywords)
| void CbcParam::addHelp | ( | std::string | keyWord | ) |
Adds one help line.
|
inline |
Returns name.
Definition at line 184 of file CbcParam.hpp.
|
inline |
Returns short help.
Definition at line 189 of file CbcParam.hpp.
| int CbcParam::setDoubleParameter | ( | CbcModel & | model, |
| double | value | ||
| ) | const |
Sets a double parameter (nonzero code if error)
| double CbcParam::doubleParameter | ( | CbcModel & | model | ) | const |
Gets a double parameter.
| int CbcParam::setIntParameter | ( | CbcModel & | model, |
| int | value | ||
| ) | const |
Sets a int parameter (nonzero code if error)
| int CbcParam::intParameter | ( | CbcModel & | model | ) | const |
Gets a int parameter.
| int CbcParam::setDoubleParameter | ( | ClpSimplex * | model, |
| double | value | ||
| ) | const |
Sets a double parameter (nonzero code if error)
| double CbcParam::doubleParameter | ( | ClpSimplex * | model | ) | const |
Gets a double parameter.
| int CbcParam::setIntParameter | ( | ClpSimplex * | model, |
| int | value | ||
| ) | const |
Sets a int parameter (nonzero code if error)
| int CbcParam::intParameter | ( | ClpSimplex * | model | ) | const |
Gets a int parameter.
| int CbcParam::setDoubleParameter | ( | OsiSolverInterface * | model, |
| double | value | ||
| ) | const |
Sets a double parameter (nonzero code if error)
| double CbcParam::doubleParameter | ( | OsiSolverInterface * | model | ) | const |
Gets a double parameter.
| int CbcParam::setIntParameter | ( | OsiSolverInterface * | model, |
| int | value | ||
| ) | const |
Sets a int parameter (nonzero code if error)
| int CbcParam::intParameter | ( | OsiSolverInterface * | model | ) | const |
Gets a int parameter.
| int CbcParam::checkDoubleParameter | ( | double | value | ) | const |
Checks a double parameter (nonzero code if error)
| std::string CbcParam::matchName | ( | ) | const |
Returns name which could match.
| int CbcParam::parameterOption | ( | std::string | check | ) | const |
Returns parameter option which matches (-1 if none)
| void CbcParam::printOptions | ( | ) | const |
Prints parameter options.
|
inline |
Returns current parameter option.
Definition at line 226 of file CbcParam.hpp.
|
inline |
Sets current parameter option.
Definition at line 231 of file CbcParam.hpp.
|
inline |
Sets int value.
Definition at line 236 of file CbcParam.hpp.
|
inline |
Definition at line 240 of file CbcParam.hpp.
|
inline |
Sets double value.
Definition at line 245 of file CbcParam.hpp.
|
inline |
Definition at line 249 of file CbcParam.hpp.
|
inline |
Sets string value.
Definition at line 254 of file CbcParam.hpp.
|
inline |
Definition at line 258 of file CbcParam.hpp.
| int CbcParam::matches | ( | std::string | input | ) | const |
Returns 1 if matches minimum, 2 if matches less, 0 if not matched.
|
inline |
type
Definition at line 265 of file CbcParam.hpp.
|
inline |
whether to display
Definition at line 270 of file CbcParam.hpp.
|
inline |
Set Long help.
Definition at line 275 of file CbcParam.hpp.
| void CbcParam::printLongHelp | ( | ) | const |
Print Long help.
| void CbcParam::printString | ( | ) | const |
Print action and string.
|
inline |
type for classification
Definition at line 284 of file CbcParam.hpp.
|
private |
gutsOfConstructor
|
private |
Definition at line 300 of file CbcParam.hpp.
|
private |
If double == okay.
Definition at line 302 of file CbcParam.hpp.
|
private |
Definition at line 303 of file CbcParam.hpp.
|
private |
If int == okay.
Definition at line 305 of file CbcParam.hpp.
|
private |
Definition at line 306 of file CbcParam.hpp.
|
private |
Definition at line 308 of file CbcParam.hpp.
|
private |
Definition at line 310 of file CbcParam.hpp.
|
private |
set of valid strings
Definition at line 312 of file CbcParam.hpp.
|
private |
Name.
Definition at line 314 of file CbcParam.hpp.
|
private |
Short help.
Definition at line 316 of file CbcParam.hpp.
|
private |
Long help.
Definition at line 318 of file CbcParam.hpp.
|
private |
Action.
Definition at line 320 of file CbcParam.hpp.
|
private |
Current keyWord (if a keyword parameter)
Definition at line 322 of file CbcParam.hpp.
|
private |
Display on ?
Definition at line 324 of file CbcParam.hpp.
|
private |
Integer parameter - current value.
Definition at line 326 of file CbcParam.hpp.
|
private |
Double parameter - current value.
Definition at line 328 of file CbcParam.hpp.
|
private |
String parameter - current value.
Definition at line 330 of file CbcParam.hpp.
|
private |
index number to use for display purposes
Definition at line 332 of file CbcParam.hpp.
1.8.5