161 CbcParam(std::string name, std::string help,
164 CbcParam(std::string name, std::string help, std::string firstValue,
167 CbcParam(std::string name, std::string help,
179 void append(std::string keyWord);
182 void addHelp(std::string keyWord);
184 inline std::string
name()
const
263 int matches(std::string input)
const;
std::vector< std::string > definedKeyWords_
set of valid strings
CbcParameterType type_
If double == okay.
int currentKeyWord_
Current keyWord (if a keyword parameter)
int lowerIntValue_
If int == okay.
void setLonghelp(const std::string help)
Set Long help.
void setDoubleValue(double value)
Sets double value.
std::string name() const
Returns name.
CbcParameterType type() const
type
int intValue() const
Insert string (only valid for keywords)
int indexNumber_
index number to use for display purposes
void setStringValue(std::string value)
Sets string value.
unsigned int lengthMatch_
If double == okay.
int checkDoubleParameter(double value) const
Checks a double parameter (nonzero code if error)
std::string stringValue_
String parameter - current value.
double doubleParameter(CbcModel &model) const
Gets a double parameter.
double doubleValue() const
Insert string (only valid for keywords)
void append(std::string keyWord)
Insert string (only valid for keywords)
void printLongHelp() const
Print Long help.
std::string stringValue() const
Insert string (only valid for keywords)
unsigned int lengthName_
If double == okay.
void printString() const
Print action and string.
int indexNumber() const
type for classification
std::string longHelp_
Long help.
CbcParameterType action_
Action.
void setCurrentOption(int value)
Sets current parameter option.
double upperDoubleValue_
If double == okay.
bool displayThis() const
whether to display
void gutsOfConstructor()
gutsOfConstructor
std::string shortHelp_
Short help.
CbcParameterType
Parameter codes.
Abstract Base Class for describing an interface to a solver.
This solves LPs using the simplex method.
int intParameter(CbcModel &model) const
Gets a int parameter.
int upperIntValue_
If double == okay.
int setDoubleParameter(CbcModel &model, double value) const
Sets a double parameter (nonzero code if error)
double doubleValue_
Double parameter - current value.
double lowerDoubleValue_
If double == okay.
CbcParam & operator=(const CbcParam &rhs)
Assignment operator. This copies the data.
int intValue_
Integer parameter - current value.
int matches(std::string input) const
Returns 1 if matches minimum, 2 if matches less, 0 if not matched.
std::string currentOption() const
Returns current parameter option.
std::string matchName() const
Returns name which could match.
std::string shortHelp() const
Returns short help.
void printOptions() const
Prints parameter options.
bool display_
Display on ?
Very simple class for setting parameters.
int parameterOption(std::string check) const
Returns parameter option which matches (-1 if none)
void setIntValue(int value)
Sets int value.
Simple Branch and bound class.
int setIntParameter(CbcModel &model, int value) const
Sets a int parameter (nonzero code if error)
void addHelp(std::string keyWord)
Adds one help line.