#include <CbcParam.hpp>
stuff | |
void | append (std::string keyWord) |
Insert string (only valid for keywords). | |
void | addHelp (std::string keyWord) |
Adds one help line. | |
std::string | name () const |
Returns name. | |
std::string | shortHelp () const |
Returns short help. | |
int | setDoubleParameter (CbcModel &model, double value) const |
Sets a double parameter (nonzero code if error). | |
double | doubleParameter (CbcModel &model) const |
Gets a double parameter. | |
int | setIntParameter (CbcModel &model, int value) const |
Sets a int parameter (nonzero code if error). | |
int | intParameter (CbcModel &model) const |
Gets a int parameter. | |
int | setDoubleParameter (ClpSimplex *model, double value) const |
Sets a double parameter (nonzero code if error). | |
double | doubleParameter (ClpSimplex *model) const |
Gets a double parameter. | |
int | setIntParameter (ClpSimplex *model, int value) const |
Sets a int parameter (nonzero code if error). | |
int | intParameter (ClpSimplex *model) const |
Gets a int parameter. | |
int | setDoubleParameter (OsiSolverInterface *model, double value) const |
Sets a double parameter (nonzero code if error). | |
double | doubleParameter (OsiSolverInterface *model) const |
Gets a double parameter. | |
int | setIntParameter (OsiSolverInterface *model, int value) const |
Sets a int parameter (nonzero code if error). | |
int | intParameter (OsiSolverInterface *model) const |
Gets a int parameter. | |
int | checkDoubleParameter (double value) const |
Checks a double parameter (nonzero code if error). | |
std::string | matchName () const |
Returns name which could match. | |
int | parameterOption (std::string check) const |
Returns parameter option which matches (-1 if none). | |
void | printOptions () const |
Prints parameter options. | |
std::string | currentOption () const |
Returns current parameter option. | |
void | setCurrentOption (int value) |
Sets current parameter option. | |
void | setIntValue (int value) |
Sets int value. | |
int | intValue () const |
Insert string (only valid for keywords). | |
void | setDoubleValue (double value) |
Sets double value. | |
double | doubleValue () const |
Insert string (only valid for keywords). | |
void | setStringValue (std::string value) |
Sets string value. | |
std::string | stringValue () const |
Insert string (only valid for keywords). | |
int | matches (std::string input) const |
Returns 1 if matches minimum, 2 if matches less, 0 if not matched. | |
CbcParameterType | type () const |
type | |
bool | displayThis () const |
whether to display | |
void | setLonghelp (const std::string help) |
Set Long help. | |
void | printLongHelp () const |
Print Long help. | |
void | printString () const |
Print action and string. | |
int | indexNumber () const |
type for classification | |
void | gutsOfConstructor () |
gutsOfConstructor | |
Public Member Functions | |
Constructor and destructor | |
CbcParam () | |
Constructors. | |
CbcParam (std::string name, std::string help, double lower, double upper, CbcParameterType type, bool display=true) | |
Constructors. | |
CbcParam (std::string name, std::string help, int lower, int upper, CbcParameterType type, bool display=true) | |
Constructors. | |
CbcParam (std::string name, std::string help, std::string firstValue, CbcParameterType type, int defaultIndex=0, bool display=true) | |
Constructors. | |
CbcParam (std::string name, std::string help, CbcParameterType type, int indexNumber=-1, bool display=true) | |
Constructors. | |
CbcParam (const CbcParam &) | |
Copy constructor. | |
CbcParam & | operator= (const CbcParam &rhs) |
Assignment operator. This copies the data. | |
~CbcParam () | |
Destructor. | |
Private Attributes | |
data | |
We might as well throw all type data in - could derive? | |
CbcParameterType | type_ |
double | lowerDoubleValue_ |
If double == okay. | |
double | upperDoubleValue_ |
int | lowerIntValue_ |
If int == okay. | |
int | upperIntValue_ |
unsigned int | lengthName_ |
unsigned int | lengthMatch_ |
std::vector< std::string > | definedKeyWords_ |
set of valid strings | |
std::string | name_ |
Name. | |
std::string | shortHelp_ |
Short help. | |
std::string | longHelp_ |
Long help. | |
CbcParameterType | action_ |
Action. | |
int | currentKeyWord_ |
Current keyWord (if a keyword parameter). | |
bool | display_ |
Display on ? | |
int | intValue_ |
Integer parameter - current value. | |
double | doubleValue_ |
Double parameter - current value. | |
std::string | stringValue_ |
String parameter - current value. | |
int | indexNumber_ |
index number to use for display purposes |
Definition at line 65 of file CbcParam.hpp.
|
Constructors.
|
|
Constructors.
|
|
Constructors.
|
|
Constructors.
|
|
Constructors.
|
|
Copy constructor.
|
|
Destructor.
|
|
Assignment operator. This copies the data.
|
|
Insert string (only valid for keywords).
|
|
Adds one help line.
|
|
Returns name.
Definition at line 98 of file CbcParam.hpp. |
|
Returns short help.
Definition at line 102 of file CbcParam.hpp. |
|
Sets a double parameter (nonzero code if error).
|
|
Gets a double parameter.
|
|
Sets a int parameter (nonzero code if error).
|
|
Gets a int parameter.
|
|
Sets a double parameter (nonzero code if error).
|
|
Gets a double parameter.
|
|
Sets a int parameter (nonzero code if error).
|
|
Gets a int parameter.
|
|
Sets a double parameter (nonzero code if error).
|
|
Gets a double parameter.
|
|
Sets a int parameter (nonzero code if error).
|
|
Gets a int parameter.
|
|
Checks a double parameter (nonzero code if error).
|
|
Returns name which could match.
|
|
Returns parameter option which matches (-1 if none).
|
|
Prints parameter options.
|
|
Returns current parameter option.
Definition at line 138 of file CbcParam.hpp. |
|
Sets current parameter option.
Definition at line 141 of file CbcParam.hpp. |
|
Sets int value.
Definition at line 144 of file CbcParam.hpp. |
|
Insert string (only valid for keywords).
Definition at line 146 of file CbcParam.hpp. |
|
Sets double value.
Definition at line 149 of file CbcParam.hpp. |
|
Insert string (only valid for keywords).
Definition at line 151 of file CbcParam.hpp. |
|
Sets string value.
Definition at line 154 of file CbcParam.hpp. |
|
Insert string (only valid for keywords).
Definition at line 156 of file CbcParam.hpp. |
|
Returns 1 if matches minimum, 2 if matches less, 0 if not matched.
|
|
type
Definition at line 161 of file CbcParam.hpp. References CbcParameterType. |
|
whether to display
Definition at line 164 of file CbcParam.hpp. |
|
Set Long help.
Definition at line 167 of file CbcParam.hpp. |
|
Print Long help.
|
|
Print action and string.
|
|
type for classification
Definition at line 174 of file CbcParam.hpp. |
|
gutsOfConstructor
|
|
Definition at line 188 of file CbcParam.hpp. |
|
If double == okay.
Definition at line 190 of file CbcParam.hpp. |
|
Definition at line 191 of file CbcParam.hpp. |
|
If int == okay.
Definition at line 193 of file CbcParam.hpp. |
|
Definition at line 194 of file CbcParam.hpp. |
|
Definition at line 196 of file CbcParam.hpp. |
|
Definition at line 198 of file CbcParam.hpp. |
|
set of valid strings
Definition at line 200 of file CbcParam.hpp. |
|
Name.
Definition at line 202 of file CbcParam.hpp. |
|
Short help.
Definition at line 204 of file CbcParam.hpp. |
|
Long help.
Definition at line 206 of file CbcParam.hpp. |
|
Action.
Definition at line 208 of file CbcParam.hpp. |
|
Current keyWord (if a keyword parameter).
Definition at line 210 of file CbcParam.hpp. |
|
Display on ?
Definition at line 212 of file CbcParam.hpp. |
|
Integer parameter - current value.
Definition at line 214 of file CbcParam.hpp. |
|
Double parameter - current value.
Definition at line 216 of file CbcParam.hpp. |
|
String parameter - current value.
Definition at line 218 of file CbcParam.hpp. |
|
index number to use for display purposes
Definition at line 220 of file CbcParam.hpp. |