Go to the documentation of this file.
9 #include "OsiSolverInterface.hpp"
164 CbcParam(std::string
name, std::string help, std::string firstValue,
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;
@ CBC_PARAM_NOTUSED_CBCSTUFF
void setCurrentOption(int value)
Sets current parameter option.
std::vector< std::string > definedKeyWords_
set of valid strings
@ CLP_PARAM_DBL_PRIMALWEIGHT
@ CLP_PARAM_INT_PRESOLVEPASS
@ CLP_PARAM_NOTUSED_ALGORITHM
@ CLP_PARAM_ACTION_MAXIMIZE
@ CBC_PARAM_ACTION_MIPLIB
@ CBC_PARAM_NOTUSED_INVALID
std::string currentOption() const
Returns current parameter option.
@ CLP_PARAM_ACTION_BARRIER
CbcParameterType action_
Action.
@ CBC_PARAM_NOTUSED_ADDCUTSSTRATEGY
@ CBC_PARAM_STR_NODESTRATEGY
@ CLP_PARAM_INT_PRESOLVEOPTIONS
bool displayThis() const
whether to display
void setIntValue(int value)
Sets int value.
CbcParameterType type() const
type
@ CLP_PARAM_ACTION_REVERSE
@ CLP_PARAM_ACTION_SOLVECONTINUOUS
@ CLP_PARAM_ACTION_TIGHTEN
Very simple class for setting parameters.
@ CLP_PARAM_ACTION_DUALSIMPLEX
@ CLP_PARAM_INT_PRINTOPTIONS
@ CBC_PARAM_NOTUSED_OSLSTUFF
@ CLP_PARAM_ACTION_EXPORT
@ CLP_PARAM_ACTION_SOLUTION
@ CLP_PARAM_STR_AUTOSCALE
@ CLP_PARAM_DBL_PRIMALTOLERANCE
@ CLP_PARAM_ACTION_IMPORT
std::string stringValue() const
@ CLP_PARAM_ACTION_DIRECTORY
void setLonghelp(const std::string help)
Set Long help.
CbcParam & operator=(const CbcParam &rhs)
Assignment operator. This copies the data.
@ CLP_PARAM_DBL_DUALBOUND
@ CLP_PARAM_INT_MAXFACTOR
@ CLP_PARAM_STR_DUALPIVOT
@ CLP_PARAM_ACTION_RESTORE
@ CLP_PARAM_INT_SPECIALOPTIONS
@ CBC_PARAM_NOTUSED_ODDHOLECUTS
@ CBC_PARAM_STR_PREPROCESS
int currentKeyWord_
Current keyWord (if a keyword parameter)
@ CBC_PARAM_STR_COSTSTRATEGY
@ CBC_PARAM_STR_GOMORYCUTS
void append(std::string keyWord)
Insert string (only valid for keywords)
int setIntParameter(CbcModel &model, int value) const
Sets a int parameter (nonzero code if error)
@ CLP_PARAM_ACTION_NETWORK
int intParameter(CbcModel &model) const
Gets a int parameter.
@ CLP_PARAM_ACTION_REALLY_SCALE
@ CLP_PARAM_ACTION_BASISOUT
@ CBC_PARAM_DBL_ALLOWABLEGAP
@ CLP_PARAM_ACTION_NETLIB_PRIMAL
void printLongHelp() const
Print Long help.
@ CLP_PARAM_ACTION_UNITTEST
@ CBC_PARAM_STR_BRANCHSTRATEGY
@ CLP_PARAM_ACTION_CLEARCUTS
@ CBC_PARAM_STR_KNAPSACKCUTS
Simple Branch and bound class.
int intValue_
Integer parameter - current value.
void printOptions() const
Prints parameter options.
@ CLP_PARAM_INT_MAXITERATION
bool display_
Display on ?
@ CBC_PARAM_DBL_INTEGERTOLERANCE
std::string matchName() const
Returns name which could match.
@ CBC_PARAM_STR_CLIQUECUTS
std::string longHelp_
Long help.
std::string stringValue_
String parameter - current value.
int lowerIntValue_
If int == okay.
@ CLP_PARAM_ACTION_FAKEBOUND
@ CLP_PARAM_STR_PRIMALPIVOT
int setDoubleParameter(CbcModel &model, double value) const
Sets a double parameter (nonzero code if error)
std::string shortHelp_
Short help.
std::string shortHelp() const
Returns short help.
@ CBC_PARAM_STR_MIXEDCUTS
@ CLP_PARAM_STR_KEEPNAMES
@ CLP_PARAM_STR_ERRORSALLOWED
int parameterOption(std::string check) const
Returns parameter option which matches (-1 if none)
void setDoubleValue(double value)
Sets double value.
void setStringValue(std::string value)
Sets string value.
double doubleValue_
Double parameter - current value.
@ CLP_PARAM_ACTION_NETLIB_DUAL
@ CLP_PARAM_INT_OUTPUTFORMAT
void printString() const
Print action and string.
@ CLP_PARAM_ACTION_ALLSLACK
@ CLP_VERSION_NOTUSED_PRINTVERSION
int indexNumber() const
type for classification
int indexNumber_
index number to use for display purposes
@ CLP_PARAM_STR_DIRECTION
@ CLP_PARAM_STR_PERTURBATION
@ CLP_PARAM_ACTION_BASISIN
double doubleValue() const
int checkDoubleParameter(double value) const
Checks a double parameter (nonzero code if error)
@ CBC_PARAM_STR_TWOMIRCUTS
@ CLP_PARAM_INT_SOLVERLOGLEVEL
@ CBC_PARAM_DBL_INCREMENT
double doubleParameter(CbcModel &model) const
Gets a double parameter.
@ CBC_PARAM_INT_STRONGBRANCHING
@ CBC_PARAM_STR_PROBINGCUTS
@ CLP_PARAM_ACTION_MINIMIZE
@ CLP_PARAM_DBL_TIMELIMIT
@ CLP_PARAM_ACTION_PRIMALSIMPLEX
@ CBC_PARAM_DBL_INFEASIBILITYWEIGHT
@ CLP_PARAM_DBL_DUALTOLERANCE
@ CBC_PARAM_DBL_TIGHTENFACTOR
@ CLP_PARAM_STR_CROSSOVER
CbcParameterType
Parameter codes.
@ CLP_PARAM_INT_PERTVALUE
void addHelp(std::string keyWord)
Adds one help line.
@ CLP_PARAM_STR_BARRIERSCALE
@ CLP_PARAM_ACTION_NETLIB_BARRIER
@ CLP_PARAM_ACTION_PLUSMINUS
unsigned int lengthMatch_
double lowerDoubleValue_
If double == okay.
std::string name() const
Returns name.
@ CBC_PARAM_FULLGENERALQUERY
void gutsOfConstructor()
gutsOfConstructor
int matches(std::string input) const
Returns 1 if matches minimum, 2 if matches less, 0 if not matched.
@ CLP_PARAM_STR_SPARSEFACTOR