/home/coin/SVN-release/OS-2.4.2/OS/src/OSUtils/OSMathUtil.cpp File Reference

#include "OSConfig.h"
#include "OSMathUtil.h"
#include "OSGeneral.h"
#include <iostream>
#include <sstream>

Include dependency graph for OSMathUtil.cpp:

Go to the source code of this file.

Functions

double os_strtod_wrap (const char *str, char **strEnd)
std::string os_dtoa_format (double x)
double OSRand ()
 OSRand().
double OSiRand (int iMin, int iMax)
 OSiRand(int iMin, int iMax).


Function Documentation

double os_strtod_wrap ( const char *  str,
char **  strEnd 
)

Definition at line 125 of file OSMathUtil.cpp.

References os_strtod().

std::string os_dtoa_format ( double  x  ) 

Definition at line 135 of file OSMathUtil.cpp.

References k, os_dtoa(), os_freedtoa(), OSDBL_MAX, and OSIsnan().

Referenced by OSnLNodeVariable::getNonlinearExpressionInXML(), OSnLNodeNumber::getNonlinearExpressionInXML(), OSInstance::getNonlinearExpressionTreeInInfix(), OSInstance::printModel(), OSnl2osil::walkTree(), writeDblVectorData(), OSiLWriter::writeOSiL(), OSoLWriter::writeOSoL(), OSrLWriter::writeOSrL(), and CoinSolver::writeResult().

double OSRand (  ) 

OSRand().

Returns:
a uniformly distributed random number between 0 and 1 (inclusive) The random number generator used, rand(), is not very good and should be replaced by a serious random number generator for serious work.

Definition at line 240 of file OSMathUtil.cpp.

Referenced by SolverOutput::setRandom(), OtherSolverOutput::setRandom(), OtherSolutionResult::setRandom(), OtherSolutionResults::setRandom(), OtherConResult::setRandom(), OtherConstraintResult::setRandom(), DualVarValue::setRandom(), DualVariableValues::setRandom(), ConstraintSolution::setRandom(), OtherObjResult::setRandom(), OtherObjectiveResult::setRandom(), ObjValue::setRandom(), ObjectiveValues::setRandom(), ObjectiveSolution::setRandom(), OtherVarResult::setRandom(), OtherVariableResult::setRandom(), VarValueString::setRandom(), VariableValuesString::setRandom(), VarValue::setRandom(), VariableValues::setRandom(), VariableSolution::setRandom(), OptimizationSolutionSubstatus::setRandom(), OptimizationSolutionStatus::setRandom(), OptimizationSolution::setRandom(), OptimizationResult::setRandom(), TimeMeasurement::setRandom(), TimingInformation::setRandom(), JobResult::setRandom(), ServiceResult::setRandom(), SystemResult::setRandom(), OtherResults::setRandom(), GeneralSubstatus::setRandom(), GeneralStatus::setRandom(), GeneralResult::setRandom(), OSResult::setRandom(), SolverOption::setRandom(), SolverOptions::setRandom(), OtherConOption::setRandom(), OtherConstraintOption::setRandom(), InitDualVarValue::setRandom(), InitDualVariableValues::setRandom(), InitConValue::setRandom(), InitConstraintValues::setRandom(), ConstraintOption::setRandom(), OtherObjOption::setRandom(), OtherObjectiveOption::setRandom(), InitObjBound::setRandom(), InitObjectiveBounds::setRandom(), InitObjValue::setRandom(), InitObjectiveValues::setRandom(), ObjectiveOption::setRandom(), OtherVarOption::setRandom(), OtherVariableOption::setRandom(), BranchingWeight::setRandom(), SOSWeights::setRandom(), SOSVariableBranchingWeights::setRandom(), IntegerVariableBranchingWeights::setRandom(), InitVarValueString::setRandom(), InitVariableValuesString::setRandom(), InitVarValue::setRandom(), InitVariableValues::setRandom(), VariableOption::setRandom(), Processes::setRandom(), PathPair::setRandom(), PathPairs::setRandom(), DirectoriesAndFiles::setRandom(), JobDependencies::setRandom(), OtherOption::setRandom(), OtherOptions::setRandom(), ContactOption::setRandom(), InstanceLocationOption::setRandom(), OptimizationOption::setRandom(), JobOption::setRandom(), ServiceOption::setRandom(), SystemOption::setRandom(), GeneralOption::setRandom(), OSOption::setRandom(), TimeSpan::setRandom(), CPUNumber::setRandom(), CPUSpeed::setRandom(), StorageCapacity::setRandom(), BasisStatus::setRandom(), OtherOptionEnumeration::setRandom(), IntVector::setRandom(), and GeneralFileHeader::setRandom().

double OSiRand ( int  iMin,
int  iMax 
)

OSiRand(int iMin, int iMax).

Returns:
a uniformly distributed random integer between iMin and iMax (inclusive) The random number generator used, rand(), is not very good and should be replaced by a serious random number generator for serious work.

Definition at line 257 of file OSMathUtil.cpp.

Referenced by IntVector::setRandom().


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