Clp  1.16.6
List of all members
CbcOrClpParam Class Reference

Very simple class for setting parameters. More...

#include <CbcOrClpParam.hpp>

Public Member Functions

Constructor and destructor
 CbcOrClpParam ()
 Constructors. More...
 
 CbcOrClpParam (std::string name, std::string help, double lower, double upper, CbcOrClpParameterType type, int display=2)
 
 CbcOrClpParam (std::string name, std::string help, int lower, int upper, CbcOrClpParameterType type, int display=2)
 
 CbcOrClpParam (std::string name, std::string help, std::string firstValue, CbcOrClpParameterType type, int whereUsed=7, int display=2)
 
 CbcOrClpParam (std::string name, std::string help, CbcOrClpParameterType type, int whereUsed=7, int display=2)
 
 CbcOrClpParam (const CbcOrClpParam &)
 Copy constructor. More...
 
CbcOrClpParamoperator= (const CbcOrClpParam &rhs)
 Assignment operator. This copies the data. More...
 
 ~CbcOrClpParam ()
 Destructor. More...
 

stuff

void append (std::string keyWord)
 Insert string (only valid for keywords) More...
 
void addHelp (std::string keyWord)
 Adds one help line. More...
 
std::string name () const
 Returns name. More...
 
std::string shortHelp () const
 Returns short help. More...
 
int setDoubleParameter (CbcModel &model, double value)
 Sets a double parameter (nonzero code if error) More...
 
const char * setDoubleParameterWithMessage (CbcModel &model, double value, int &returnCode)
 Sets double parameter and returns printable string and error code. More...
 
double doubleParameter (CbcModel &model) const
 Gets a double parameter. More...
 
int setIntParameter (CbcModel &model, int value)
 Sets a int parameter (nonzero code if error) More...
 
const char * setIntParameterWithMessage (CbcModel &model, int value, int &returnCode)
 Sets int parameter and returns printable string and error code. More...
 
int intParameter (CbcModel &model) const
 Gets a int parameter. More...
 
int setDoubleParameter (ClpSimplex *model, double value)
 Sets a double parameter (nonzero code if error) More...
 
double doubleParameter (ClpSimplex *model) const
 Gets a double parameter. More...
 
const char * setDoubleParameterWithMessage (ClpSimplex *model, double value, int &returnCode)
 Sets double parameter and returns printable string and error code. More...
 
int setIntParameter (ClpSimplex *model, int value)
 Sets a int parameter (nonzero code if error) More...
 
const char * setIntParameterWithMessage (ClpSimplex *model, int value, int &returnCode)
 Sets int parameter and returns printable string and error code. More...
 
int intParameter (ClpSimplex *model) const
 Gets a int parameter. More...
 
int setDoubleParameter (OsiSolverInterface *model, double value)
 Sets a double parameter (nonzero code if error) More...
 
const char * setDoubleParameterWithMessage (OsiSolverInterface *model, double value, int &returnCode)
 Sets double parameter and returns printable string and error code. More...
 
double doubleParameter (OsiSolverInterface *model) const
 Gets a double parameter. More...
 
int setIntParameter (OsiSolverInterface *model, int value)
 Sets a int parameter (nonzero code if error) More...
 
const char * setIntParameterWithMessage (OsiSolverInterface *model, int value, int &returnCode)
 Sets int parameter and returns printable string and error code. More...
 
int intParameter (OsiSolverInterface *model) const
 Gets a int parameter. More...
 
int checkDoubleParameter (double value) const
 Checks a double parameter (nonzero code if error) More...
 
std::string matchName () const
 Returns name which could match. More...
 
int lengthMatchName () const
 Returns length of name for ptinting. More...
 
int parameterOption (std::string check) const
 Returns parameter option which matches (-1 if none) More...
 
void printOptions () const
 Prints parameter options. More...
 
std::string currentOption () const
 Returns current parameter option. More...
 
void setCurrentOption (int value, bool printIt=false)
 Sets current parameter option. More...
 
const char * setCurrentOptionWithMessage (int value)
 Sets current parameter option and returns printable string. More...
 
void setCurrentOption (const std::string value)
 Sets current parameter option using string. More...
 
const char * setCurrentOptionWithMessage (const std::string value)
 Sets current parameter option using string with message. More...
 
int currentOptionAsInteger () const
 Returns current parameter option position. More...
 
int currentOptionAsInteger (int &fakeInteger) const
 Returns current parameter option position but if fake keyword returns a fake value and sets fakeInteger to true value. More...
 
void setIntValue (int value)
 Sets int value. More...
 
const char * setIntValueWithMessage (int value)
 Sets int value with message. More...
 
int intValue () const
 
void setDoubleValue (double value)
 Sets double value. More...
 
const char * setDoubleValueWithMessage (double value)
 Sets double value with message. More...
 
double doubleValue () const
 
void setStringValue (std::string value)
 Sets string value. More...
 
std::string stringValue () const
 
int matches (std::string input) const
 Returns 1 if matches minimum, 2 if matches less, 0 if not matched. More...
 
CbcOrClpParameterType type () const
 type More...
 
int displayThis () const
 whether to display More...
 
void setLonghelp (const std::string help)
 Set Long help. More...
 
void printLongHelp () const
 Print Long help. More...
 
void printString () const
 Print action and string. More...
 
int whereUsed () const
 7 if used everywhere, 1 - used by clp 2 - used by cbc 4 - used by ampl More...
 
int fakeKeyWord () const
 Gets value of fake keyword. More...
 
void setFakeKeyWord (int value, int fakeValue)
 Sets value of fake keyword. More...
 
void setFakeKeyWord (int fakeValue)
 Sets value of fake keyword to current size of keywords. More...
 

Detailed Description

Very simple class for setting parameters.

Definition at line 294 of file CbcOrClpParam.hpp.

Constructor & Destructor Documentation

CbcOrClpParam::CbcOrClpParam ( )

Constructors.

CbcOrClpParam::CbcOrClpParam ( std::string  name,
std::string  help,
double  lower,
double  upper,
CbcOrClpParameterType  type,
int  display = 2 
)
CbcOrClpParam::CbcOrClpParam ( std::string  name,
std::string  help,
int  lower,
int  upper,
CbcOrClpParameterType  type,
int  display = 2 
)
CbcOrClpParam::CbcOrClpParam ( std::string  name,
std::string  help,
std::string  firstValue,
CbcOrClpParameterType  type,
int  whereUsed = 7,
int  display = 2 
)
CbcOrClpParam::CbcOrClpParam ( std::string  name,
std::string  help,
CbcOrClpParameterType  type,
int  whereUsed = 7,
int  display = 2 
)
CbcOrClpParam::CbcOrClpParam ( const CbcOrClpParam )

Copy constructor.

CbcOrClpParam::~CbcOrClpParam ( )

Destructor.

Member Function Documentation

CbcOrClpParam& CbcOrClpParam::operator= ( const CbcOrClpParam rhs)

Assignment operator. This copies the data.

void CbcOrClpParam::append ( std::string  keyWord)

Insert string (only valid for keywords)

void CbcOrClpParam::addHelp ( std::string  keyWord)

Adds one help line.

std::string CbcOrClpParam::name ( ) const
inline

Returns name.

Definition at line 325 of file CbcOrClpParam.hpp.

std::string CbcOrClpParam::shortHelp ( ) const
inline

Returns short help.

Definition at line 329 of file CbcOrClpParam.hpp.

int CbcOrClpParam::setDoubleParameter ( CbcModel &  model,
double  value 
)

Sets a double parameter (nonzero code if error)

const char* CbcOrClpParam::setDoubleParameterWithMessage ( CbcModel &  model,
double  value,
int &  returnCode 
)

Sets double parameter and returns printable string and error code.

double CbcOrClpParam::doubleParameter ( CbcModel &  model) const

Gets a double parameter.

int CbcOrClpParam::setIntParameter ( CbcModel &  model,
int  value 
)

Sets a int parameter (nonzero code if error)

const char* CbcOrClpParam::setIntParameterWithMessage ( CbcModel &  model,
int  value,
int &  returnCode 
)

Sets int parameter and returns printable string and error code.

int CbcOrClpParam::intParameter ( CbcModel &  model) const

Gets a int parameter.

int CbcOrClpParam::setDoubleParameter ( ClpSimplex model,
double  value 
)

Sets a double parameter (nonzero code if error)

double CbcOrClpParam::doubleParameter ( ClpSimplex model) const

Gets a double parameter.

const char* CbcOrClpParam::setDoubleParameterWithMessage ( ClpSimplex model,
double  value,
int &  returnCode 
)

Sets double parameter and returns printable string and error code.

int CbcOrClpParam::setIntParameter ( ClpSimplex model,
int  value 
)

Sets a int parameter (nonzero code if error)

const char* CbcOrClpParam::setIntParameterWithMessage ( ClpSimplex model,
int  value,
int &  returnCode 
)

Sets int parameter and returns printable string and error code.

int CbcOrClpParam::intParameter ( ClpSimplex model) const

Gets a int parameter.

int CbcOrClpParam::setDoubleParameter ( OsiSolverInterface model,
double  value 
)

Sets a double parameter (nonzero code if error)

const char* CbcOrClpParam::setDoubleParameterWithMessage ( OsiSolverInterface model,
double  value,
int &  returnCode 
)

Sets double parameter and returns printable string and error code.

double CbcOrClpParam::doubleParameter ( OsiSolverInterface model) const

Gets a double parameter.

int CbcOrClpParam::setIntParameter ( OsiSolverInterface model,
int  value 
)

Sets a int parameter (nonzero code if error)

const char* CbcOrClpParam::setIntParameterWithMessage ( OsiSolverInterface model,
int  value,
int &  returnCode 
)

Sets int parameter and returns printable string and error code.

int CbcOrClpParam::intParameter ( OsiSolverInterface model) const

Gets a int parameter.

int CbcOrClpParam::checkDoubleParameter ( double  value) const

Checks a double parameter (nonzero code if error)

std::string CbcOrClpParam::matchName ( ) const

Returns name which could match.

int CbcOrClpParam::lengthMatchName ( ) const

Returns length of name for ptinting.

int CbcOrClpParam::parameterOption ( std::string  check) const

Returns parameter option which matches (-1 if none)

void CbcOrClpParam::printOptions ( ) const

Prints parameter options.

std::string CbcOrClpParam::currentOption ( ) const
inline

Returns current parameter option.

Definition at line 379 of file CbcOrClpParam.hpp.

void CbcOrClpParam::setCurrentOption ( int  value,
bool  printIt = false 
)

Sets current parameter option.

const char* CbcOrClpParam::setCurrentOptionWithMessage ( int  value)

Sets current parameter option and returns printable string.

void CbcOrClpParam::setCurrentOption ( const std::string  value)

Sets current parameter option using string.

const char* CbcOrClpParam::setCurrentOptionWithMessage ( const std::string  value)

Sets current parameter option using string with message.

int CbcOrClpParam::currentOptionAsInteger ( ) const

Returns current parameter option position.

int CbcOrClpParam::currentOptionAsInteger ( int &  fakeInteger) const

Returns current parameter option position but if fake keyword returns a fake value and sets fakeInteger to true value.

If not fake then fakeInteger is -COIN_INT_MAX

void CbcOrClpParam::setIntValue ( int  value)

Sets int value.

const char* CbcOrClpParam::setIntValueWithMessage ( int  value)

Sets int value with message.

int CbcOrClpParam::intValue ( ) const
inline

Definition at line 401 of file CbcOrClpParam.hpp.

void CbcOrClpParam::setDoubleValue ( double  value)

Sets double value.

const char* CbcOrClpParam::setDoubleValueWithMessage ( double  value)

Sets double value with message.

double CbcOrClpParam::doubleValue ( ) const
inline

Definition at line 408 of file CbcOrClpParam.hpp.

void CbcOrClpParam::setStringValue ( std::string  value)

Sets string value.

std::string CbcOrClpParam::stringValue ( ) const
inline

Definition at line 413 of file CbcOrClpParam.hpp.

int CbcOrClpParam::matches ( std::string  input) const

Returns 1 if matches minimum, 2 if matches less, 0 if not matched.

CbcOrClpParameterType CbcOrClpParam::type ( ) const
inline

type

Definition at line 419 of file CbcOrClpParam.hpp.

int CbcOrClpParam::displayThis ( ) const
inline

whether to display

Definition at line 423 of file CbcOrClpParam.hpp.

void CbcOrClpParam::setLonghelp ( const std::string  help)
inline

Set Long help.

Definition at line 427 of file CbcOrClpParam.hpp.

void CbcOrClpParam::printLongHelp ( ) const

Print Long help.

void CbcOrClpParam::printString ( ) const

Print action and string.

int CbcOrClpParam::whereUsed ( ) const
inline

7 if used everywhere, 1 - used by clp 2 - used by cbc 4 - used by ampl

Definition at line 439 of file CbcOrClpParam.hpp.

int CbcOrClpParam::fakeKeyWord ( ) const
inline

Gets value of fake keyword.

Definition at line 443 of file CbcOrClpParam.hpp.

void CbcOrClpParam::setFakeKeyWord ( int  value,
int  fakeValue 
)
inline

Sets value of fake keyword.

Definition at line 446 of file CbcOrClpParam.hpp.

void CbcOrClpParam::setFakeKeyWord ( int  fakeValue)

Sets value of fake keyword to current size of keywords.


The documentation for this class was generated from the following file: