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