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_;
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.
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.
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
void printOptions() const
Prints parameter options.
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)
CbcParameterType
Parameter codes.
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.
void printString() const
Print action and string.
std::string currentOption() const
Returns current parameter option.
double doubleValue() const
int indexNumber() const
type for classification
void printLongHelp() const
Print Long help.
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.
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)