9 #include "OsiSolverInterface.hpp" 163 CbcParam (std::string name, std::string help,
166 CbcParam (std::string name, std::string help, std::string firstValue,
169 CbcParam (std::string name, std::string help,
181 void append(std::string keyWord);
184 void addHelp(std::string keyWord);
186 inline std::string
name( )
const {
227 return definedKeyWords_[currentKeyWord_];
231 currentKeyWord_ = value;
242 doubleValue_ = value;
249 stringValue_ = value;
255 int matches (std::string input)
const;
278 void gutsOfConstructor();
290 double lowerDoubleValue_;
291 double upperDoubleValue_;
296 unsigned int lengthName_;
298 unsigned int lengthMatch_;
300 std::vector<std::string> definedKeyWords_;
304 std::string shortHelp_;
306 std::string longHelp_;
318 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