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