Go to the documentation of this file.
13 #ifndef CbcOrClpParam_H
14 #define CbcOrClpParam_H
327 void append(std::string keyWord);
330 void addHelp(std::string keyWord);
332 inline std::string
name()
const
460 int matches(std::string input)
const;
570 #define CBCMAXPARAMETERS 250
578 const std::vector< CbcOrClpParam > ¶meters);
This solves LPs using the simplex method.
@ CBC_PARAM_STR_NODESTRATEGY
@ CBC_PARAM_STR_LANDPCUTS
@ CLP_PARAM_STR_FACTORIZATION
@ CBC_PARAM_STR_KNAPSACKCUTS
std::string name() const
Returns name.
@ CBC_PARAM_INT_NUMBERANALYZE
@ CLP_PARAM_INT_MAXITERATION
@ CBC_PARAM_NOTUSED_CBCSTUFF
@ CBC_PARAM_NOTUSED_OSLSTUFF
@ CBC_PARAM_STR_RESIDCUTS
int CoinReadGetIntField(int argc, const char *argv[], int *valid)
@ CBC_PARAM_STR_GOMORYCUTS
CbcOrClpParam & operator=(const CbcOrClpParam &rhs)
Assignment operator. This copies the data.
std::string longHelp() const
Returns long help.
@ CLP_PARAM_ACTION_REVERSE
@ CLP_PARAM_ACTION_RESTORE
@ CLP_PARAM_STR_ALLCOMMANDS
@ CLP_PARAM_ACTION_SAVESOL
@ CLP_PARAM_INT_RANDOMSEED
@ CBC_PARAM_INT_STRONG_STRATEGY
@ CLP_PARAM_ACTION_BASISOUT
@ CLP_PARAM_DBL_DUALBOUND
@ CLP_PARAM_STR_KEEPNAMES
double CoinReadGetDoubleField(int argc, const char *argv[], int *valid)
@ CBC_PARAM_INT_EXPERIMENT
@ CBC_PARAM_STR_CROSSOVER2
~CbcOrClpParam()
Destructor.
std::string shortHelp() const
Returns short help.
@ CLP_PARAM_ACTION_NETLIB_PRIMAL
int lowerIntValue() const
Returns the lower bound for an int-valued parameter.
@ CBC_PARAM_INT_MAX_SLOW_CUTS
@ CBC_PARAM_STR_CUTOFF_CONSTRAINT
@ CLP_PARAM_ACTION_OUTDUPROWS
void establishParams(std::vector< CbcOrClpParam > ¶ms)
@ CLP_PARAM_ACTION_SOLVECONTINUOUS
@ CBC_PARAM_STR_CLIQUECUTS
@ CLP_PARAM_ACTION_MINIMIZE
@ CBC_PARAM_NOTUSED_INVALID
int currentKeyWord_
Current keyWord (if a keyword parameter)
void setFakeKeyWord(int value, int fakeValue)
Sets value of fake keyword.
@ CLP_PARAM_STR_BARRIERSCALE
@ CLP_PARAM_INT_MAXFACTOR
@ CBC_PARAM_ACTION_MIPSTART
int parameterOption(std::string check) const
Returns parameter option which matches (-1 if none)
@ CLP_PARAM_ACTION_PRINTMASK
void gutsOfConstructor()
gutsOfConstructor
@ CLP_PARAM_DBL_TIMELIMIT
int intValue_
Integer parameter - current value.
@ CBC_PARAM_DBL_INCREMENT
@ CLP_PARAM_ACTION_DIRNETLIB
@ CLP_PARAM_ACTION_GMPL_SOLUTION
int whereUsed_
7 if used everywhere, 1 - used by clp 2 - used by cbc 4 - used by ampl
@ CLP_PARAM_DBL_PRIMALWEIGHT
int whichParam(const CbcOrClpParameterType &name, const std::vector< CbcOrClpParam > ¶meters)
@ CBC_PARAM_INT_MULTIPLEROOTS
@ CLP_PARAM_DBL_DUALTOLERANCE
@ CLP_PARAM_STR_TIME_MODE
int lowerIntValue_
If int == okay.
@ CBC_PARAM_ACTION_PRIORITYIN
@ CLP_PARAM_DBL_PRIMALTOLERANCE
CbcOrClpParam()
Constructors.
void setCurrentOption(int value, bool printIt=false)
Sets current parameter option.
@ CBC_PARAM_DBL_ALLOWABLEGAP
int matches(std::string input) const
Returns 1 if matches minimum, 2 if matches less, 0 if not matched.
@ CBC_PARAM_INT_MAXSAVEDSOLS
@ CBC_PARAM_INT_FPUMPTUNE
@ CBC_PARAM_STR_BRANCHSTRATEGY
@ CLP_PARAM_ACTION_MAXIMIZE
int currentOptionAsInteger() const
Returns current parameter option position.
@ CLP_PARAM_ACTION_NETWORK
@ CBC_PARAM_STR_PIVOTANDFIX
@ CLP_PARAM_STR_AUTOSCALE
@ CBC_PARAM_INT_FPUMPTUNE2
@ CBC_PARAM_STR_SOSPRIORITIZE
@ CLP_PARAM_DBL_ZEROTOLERANCE
@ CLP_PARAM_ACTION_REALLY_SCALE
int fakeKeyWord_
If >=0 then integers allowed as a fake keyword So minusnnnn would got to -nnnn in currentKeyword_ and...
std::string shortHelp_
Short help.
CbcOrClpParameterType action_
Action.
@ CBC_PARAM_STR_MIXEDCUTS
void restoreSolution(ClpSimplex *lpSolver, std::string fileName, int mode)
@ CLP_PARAM_STR_CROSSOVER
@ CBC_PARAM_INT_STRONGBRANCHING
@ CLP_PARAM_INT_SUBSTITUTION
@ CLP_PARAM_INT_SPECIALOPTIONS
@ CBC_PARAM_STR_LAGOMORYCUTS
@ CBC_PARAM_STR_LATWOMIRCUTS
@ CBC_PARAM_DBL_TIMELIMIT_BAB
@ CBC_PARAM_STR_TWOMIRCUTS
const char * setDoubleValueWithMessage(double value)
Sets double value with message.
CbcOrClpParameterType type() const
type
@ CLP_PARAM_INT_VECTOR_MODE
int setDoubleParameter(CbcModel &model, double value)
Sets a double parameter (nonzero code if error)
@ CBC_PARAM_ACTION_DOHEURISTIC
unsigned int lengthMatch_
const char * setIntValueWithMessage(int value)
Sets int value with message.
@ CLP_PARAM_STR_BUFFER_MODE
void setDoubleValue(double value)
Sets double value.
@ CBC_PARAM_INT_CUTPASSINTREE
@ CLP_PARAM_ACTION_UNITTEST
@ CBC_PARAM_ACTION_MIPLIB
std::string stringValue() const
double upperDoubleValue() const
Returns the upper bound for a double-valued parameter.
@ CBC_PARAM_STR_REDSPLITCUTS
@ CBC_PARAM_DBL_FAKECUTOFF
@ CBC_PARAM_DBL_TIGHTENFACTOR
@ CBC_PARAM_FULLGENERALQUERY
int lengthMatchName() const
Returns length of name for ptinting.
std::string currentOption() const
Returns current parameter option.
CbcOrClpParameterType
Parameter codes.
@ CLP_PARAM_ACTION_DIRECTORY
@ CBC_PARAM_STR_RANDROUND
double lowerDoubleValue() const
Returns the lower bound for a double-valued parameter.
@ CLP_PARAM_STR_DIRECTION
@ CLP_PARAM_ACTION_EITHERSIMPLEX
std::string stringValue_
String parameter - current value.
@ CLP_PARAM_DBL_PRESOLVETOLERANCE
void setLonghelp(const std::string help)
Set Long help.
const char * setDoubleParameterWithMessage(CbcModel &model, double value, int &returnCode)
Sets double parameter and returns printable string and error code.
double lowerDoubleValue_
If double == okay.
double doubleValue() const
@ CBC_PARAM_INT_RANDOMSEED
@ CBC_PARAM_ACTION_DIRMIPLIB
@ CLP_PARAM_ACTION_STOREDFILE
void setCbcOrClpPrinting(bool yesNo)
@ CLP_PARAM_ACTION_NETLIB_TUNE
int fakeKeyWord() const
Gets value of fake keyword.
@ CLP_PARAM_INT_PROCESSTUNE
@ CLP_PARAM_ACTION_EXPORT
@ CBC_PARAM_INT_MAXHOTITS
@ CLP_PARAM_ACTION_BASISIN
@ CBC_PARAM_STR_PREPROCESS
@ CLP_PARAM_ACTION_PARAMETRICS
int setIntParameter(CbcModel &model, int value)
Sets a int parameter (nonzero code if error)
@ CLP_PARAM_INT_SOLVERLOGLEVEL
void saveSolution(const ClpSimplex *lpSolver, std::string fileName)
@ CLP_PARAM_ACTION_TIGHTEN
@ CLP_PARAM_ACTION_SOLUTION
@ CLP_PARAM_ACTION_DUALSIMPLEX
double doubleParameter(CbcModel &model) const
Gets a double parameter.
Very simple class for setting parameters.
@ CBC_PARAM_DBL_INFEASIBILITYWEIGHT
@ CLP_PARAM_ACTION_ENVIRONMENT
@ CBC_PARAM_STR_ZEROHALFCUTS
@ CLP_PARAM_ACTION_NETLIB_BARRIER
@ CLP_PARAM_ACTION_PLUSMINUS
@ CLP_PARAM_INT_PRINTOPTIONS
void printString() const
Print action and string.
@ CLP_PARAM_STR_DUALPIVOT
@ CBC_PARAM_INT_CUTLENGTH
@ CLP_PARAM_ACTION_DIRSAMPLE
@ CBC_PARAM_INT_DIVEOPTSOLVES
@ CLP_PARAM_ACTION_PRIMALSIMPLEX
@ CLP_PARAM_ACTION_USERCLP
@ CLP_PARAM_INT_MORESPECIALOPTIONS
@ CBC_PARAM_STR_HEURISTICSTRATEGY
@ CLP_PARAM_INT_USESOLUTION
@ CLP_PARAM_ACTION_VERSION
@ CBC_PARAM_STR_PROBINGCUTS
@ CBC_PARAM_INT_MOREMOREMIPOPTIONS
void setIntValue(int value)
Sets int value.
std::string CoinReadNextField()
Simple read stuff.
@ CBC_PARAM_DBL_FAKEINCREMENT
const std::vector< std::string > & definedKeywords() const
Returns set of valid strings.
@ CBC_PARAM_STR_LOCALTREE
@ CLP_PARAM_INT_PRESOLVEOPTIONS
@ CBC_PARAM_INT_DEPTHMINIBAB
void append(std::string keyWord)
Insert string (only valid for keywords)
@ CLP_PARAM_ACTION_NETLIB_DUAL
@ CBC_PARAM_DBL_ARTIFICIALCOST
@ CBC_PARAM_STR_PIVOTANDCOMPLEMENT
@ CLP_PARAM_ACTION_RESTORESOL
@ CLP_PARAM_ACTION_FAKEBOUND
@ CLP_PARAM_INT_PRESOLVEPASS
@ CBC_PARAM_STR_PREPROCNAMES
#define OsiSolverInterface
@ CBC_PARAM_STR_REDSPLIT2CUTS
std::vector< std::string > definedKeyWords_
set of valid strings
@ CLP_PARAM_STR_SPARSEFACTOR
@ CLP_PARAM_ACTION_NETLIB_EITHER
@ CLP_PARAM_ACTION_NEXTBESTSOLUTION
@ CBC_PARAM_INT_EXTRA_VARIABLES
const char * setCurrentOptionWithMessage(int value)
Sets current parameter option and returns printable string.
@ CBC_PARAM_INT_MOREMIPOPTIONS
int displayThis() const
whether to display
const char * setIntParameterWithMessage(CbcModel &model, int value, int &returnCode)
Sets int parameter and returns printable string and error code.
@ CLP_PARAM_STR_ERRORSALLOWED
@ CLP_PARAM_ACTION_ALLSLACK
void printLongHelp() const
Print Long help.
int checkDoubleParameter(double value) const
Checks a double parameter (nonzero code if error)
void printOptions() const
Prints parameter options.
int upperIntValue() const
Returns the upper bound for an int-valued parameter.
@ CBC_PARAM_STR_COSTSTRATEGY
@ CLP_PARAM_STR_ABCWANTED
@ CLP_PARAM_ACTION_CSVSTATISTICS
@ CLP_PARAM_ACTION_BARRIER
void addHelp(std::string keyWord)
Adds one help line.
@ CBC_PARAM_ACTION_STRENGTHEN
@ CBC_PARAM_DBL_INTEGERTOLERANCE
@ CLP_PARAM_DBL_OBJSCALE2
@ CLP_PARAM_STR_PERTURBATION
@ CLP_PARAM_INT_DECOMPOSE_BLOCKS
CbcOrClpParameterType type_
@ CBC_PARAM_STR_CUTSSTRATEGY
@ CLP_PARAM_ACTION_STATISTICS
int fakeValue_
Return this as main value if an integer.
@ CBC_PARAM_INT_NUMBERBEFORE
@ CLP_PARAM_ACTION_IMPORT
int intParameter(CbcModel &model) const
Gets a int parameter.
@ CBC_PARAM_STR_PROXIMITY
@ CLP_PARAM_INT_PERTVALUE
@ CLP_PARAM_INT_OUTPUTFORMAT
std::string CoinReadGetString(int argc, const char *argv[])
double doubleValue_
Double parameter - current value.
int whereUsed() const
7 if used everywhere, 1 - used by clp 2 - used by cbc 4 - used by ampl
@ CBC_PARAM_INT_SMALLFACT
std::string CoinReadGetCommand(int argc, const char *argv[])
@ CBC_PARAM_ACTION_USERCBC
@ CLP_PARAM_ACTION_CLEARCUTS
@ CLP_PARAM_STR_PRIMALPIVOT
@ CLP_PARAM_ACTION_MODELIN
std::string longHelp_
Long help.
void CoinReadPrintit(const char *input)
std::string matchName() const
Returns name which could match.
void setStringValue(std::string value)
Sets string value.
@ CBC_PARAM_INT_MIPOPTIONS