/home/coin/SVN-release/OS-2.4.2/OS/src/OSUtils/OSParameters.h File Reference

#include "OSConfig.h"
#include <string>
#include <limits>

Include dependency graph for OSParameters.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define OS_PLUS   1001
#define OS_SUM   1002
#define OS_MINUS   1003
#define OS_NEGATE   1004
#define OS_TIMES   1005
#define OS_DIVIDE   1006
#define OS_POWER   1009
#define OS_PRODUCT   1010
#define OS_ABS   2001
#define OS_SQUARE   2005
#define OS_SQRT   2006
#define OS_LN   2007
#define OS_EXP   2010
#define OS_SIN   3001
#define OS_COS   3002
#define OS_MIN   4010
#define OS_MAX   4011
#define OS_ERF   4625
#define OS_NUMBER   5001
#define OS_PI   5003
#define OS_E   5004
#define OS_VARIABLE   6001
#define OS_IF   7001
#define OS_ALLDIF   7016
#define OS_E_VALUE   exp(1.0)
#define OS_PI_VALUE   2*asin(1.0)
#define OS_SCHEMA_VERSION   "2.0"
#define OS_NEAR_EQUAL   1e-2
 we use OS_NEAR_EQUAL in unitTest to see if we are close to the optimal obj value
#define OS_EPS   1e-12

Functions

bool OSIsnan (double x)
 checks whether a given double is NaN
double OSNaN ()
 returns the value for NaN used in OS
std::string OSgetVersionInfo ()

Variables

const double OSDBL_MAX = std::numeric_limits<double>::max()
const int OSINT_MAX = std::numeric_limits<int>::max()


Define Documentation

#define OS_PLUS   1001

Definition at line 27 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_SUM   1002

Definition at line 28 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), OSInstance::getNonlinearExpressionTreeInInfix(), and LindoSolver::processNonlinearExpressions().

#define OS_MINUS   1003

Definition at line 29 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_NEGATE   1004

Definition at line 30 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_TIMES   1005

Definition at line 31 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_DIVIDE   1006

Definition at line 32 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_POWER   1009

Definition at line 33 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_PRODUCT   1010

Definition at line 34 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), OSInstance::getNonlinearExpressionTreeInInfix(), and LindoSolver::processNonlinearExpressions().

#define OS_ABS   2001

Definition at line 35 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_SQUARE   2005

Definition at line 36 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_SQRT   2006

Definition at line 37 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_LN   2007

Definition at line 38 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_EXP   2010

Definition at line 39 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_SIN   3001

Definition at line 40 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_COS   3002

Definition at line 41 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_MIN   4010

Definition at line 42 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_MAX   4011

Definition at line 43 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), OSInstance::getNonlinearExpressionTreeInInfix(), and LindoSolver::processNonlinearExpressions().

#define OS_ERF   4625

Definition at line 44 of file OSParameters.h.

Referenced by OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_NUMBER   5001

Definition at line 45 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), OSInstance::getNonlinearExpressionTreeInInfix(), and LindoSolver::processNonlinearExpressions().

#define OS_PI   5003

Definition at line 46 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), and OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_E   5004

Definition at line 47 of file OSParameters.h.

Referenced by OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_VARIABLE   6001

Definition at line 48 of file OSParameters.h.

Referenced by CouenneSolver::createCouenneExpression(), OSInstance::getNonlinearExpressionTreeInInfix(), OSnLNode::getVariableIndexMap(), and LindoSolver::processNonlinearExpressions().

#define OS_IF   7001

Definition at line 49 of file OSParameters.h.

Referenced by OSInstance::getNonlinearExpressionTreeInInfix().

#define OS_ALLDIF   7016

Definition at line 50 of file OSParameters.h.

#define OS_E_VALUE   exp(1.0)

Definition at line 52 of file OSParameters.h.

Referenced by OSnLNodeE::calculateFunction(), and OSnLNodeE::constructADTape().

#define OS_PI_VALUE   2*asin(1.0)

Definition at line 53 of file OSParameters.h.

Referenced by OSnLNodePI::calculateFunction(), and OSnLNodePI::constructADTape().

#define OS_SCHEMA_VERSION   "2.0"

Definition at line 55 of file OSParameters.h.

Referenced by solve(), OSiLWriter::writeOSiL(), OSoLWriter::writeOSoL(), and OSrLWriter::writeOSrL().

#define OS_NEAR_EQUAL   1e-2

we use OS_NEAR_EQUAL in unitTest to see if we are close to the optimal obj value

Definition at line 61 of file OSParameters.h.

Referenced by CheckFunctionValues(), CheckGradientValues(), and main().

#define OS_EPS   1e-12

Definition at line 63 of file OSParameters.h.

Referenced by OSnl2osil::createOSInstance().


Function Documentation

bool OSIsnan ( double  x  ) 

checks whether a given double is NaN

Definition at line 51 of file OSParameters.cpp.

Referenced by isEqual(), os_dtoa_format(), and OSoLWriter::writeOSoL().

double OSNaN (  ) 

returns the value for NaN used in OS

Definition at line 60 of file OSParameters.cpp.

References OSNAN.

Referenced by OSResult::getDualValue(), OSOption::getInitConValuesDense(), OSOption::getInitObjLowerBoundsDense(), OSOption::getInitObjUpperBoundsDense(), OSOption::getInitObjValuesDense(), OSOption::getInitVarValuesDense(), OSOption::getIntegerVariableBranchingWeightsDense(), getObjVal(), OSResult::getObjValue(), OSResult::getTimingInfoValue(), OSResult::getVarValue(), ServiceResult::setRandom(), and OSiLWriter::writeOSiL().

std::string OSgetVersionInfo (  ) 

Definition at line 71 of file OSParameters.cpp.

References OS_VERSION.

Referenced by interactiveShell(), main(), LindoSolver::optimize(), BonminSolver::writeResult(), CoinSolver::writeResult(), and CouenneSolver::writeResult().


Variable Documentation

const double OSDBL_MAX = std::numeric_limits<double>::max()

Definition at line 65 of file OSParameters.h.

const int OSINT_MAX = std::numeric_limits<int>::max()

Definition at line 66 of file OSParameters.h.


Generated on Wed Nov 30 03:11:04 2011 by  doxygen 1.4.7