9 #include "OsiSolverInterface.hpp" 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 228 return definedKeyWords_[currentKeyWord_];
233 currentKeyWord_ = value;
247 doubleValue_ = value;
256 stringValue_ = value;
263 int matches(std::string input)
const;
291 void gutsOfConstructor();
302 double lowerDoubleValue_;
303 double upperDoubleValue_;
308 unsigned int lengthName_;
310 unsigned int lengthMatch_;
312 std::vector< std::string > definedKeyWords_;
316 std::string shortHelp_;
318 std::string longHelp_;
330 std::string stringValue_;
int setDoubleParameter(CbcModel &model, double value) const
Sets a double parameter (nonzero code if error)
int checkDoubleParameter(double value) const
Checks a double parameter (nonzero code if error)
double doubleValue() const
std::string name() const
Returns name.
void setStringValue(std::string value)
Sets string value.
void setLonghelp(const std::string help)
Set Long help.
void append(std::string keyWord)
Insert string (only valid for keywords)
CbcParam & operator=(const CbcParam &rhs)
Assignment operator. This copies the data.
int parameterOption(std::string check) const
Returns parameter option which matches (-1 if none)
CbcParameterType type() const
type
std::string shortHelp() const
Returns short help.
int setIntParameter(CbcModel &model, int value) const
Sets a int parameter (nonzero code if error)
void setIntValue(int value)
Sets int value.
bool displayThis() const
whether to display
void printString() const
Print action and string.
CbcParameterType
Parameter codes.
void addHelp(std::string keyWord)
Adds one help line.
std::string matchName() const
Returns name which could match.
Very simple class for setting parameters.
void printLongHelp() const
Print Long help.
std::string currentOption() const
Returns current parameter option.
double doubleParameter(CbcModel &model) const
Gets a double parameter.
int matches(std::string input) const
Returns 1 if matches minimum, 2 if matches less, 0 if not matched.
int intParameter(CbcModel &model) const
Gets a int parameter.
int indexNumber() const
type for classification
void printOptions() const
Prints parameter options.
Simple Branch and bound class.
void setDoubleValue(double value)
Sets double value.
void setCurrentOption(int value)
Sets current parameter option.
std::string stringValue() const