scsolver::numeric::nlp::ModelImpl Class Reference

Collaboration diagram for scsolver::numeric::nlp::ModelImpl:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ModelImpl (Model *p)
 ModelImpl (const ModelImpl &other)
 ~ModelImpl () throw ()
void setPrecision (unsigned long n)
unsigned long getPrecision () const
void setGoal (GoalType e)
GoalType getGoal () const
void setVerbose (bool b)
bool getVerbose () const
void setFuncObject (BaseFuncObj *pFuncObj)
BaseFuncObjgetFuncObject () const
void pushVar (double value)
void getVars (vector< double > &vars) const
double getVarBound (size_t index, BoundType bound) const
void setVarBound (size_t index, BoundType bound, double value)
bool isVarBounded (size_t index, BoundType bound) const
void pushConstraint (BaseFuncObj *pFunc, EqualityType eq, double rightValue)
const vector
< Constraint > & 
getAllConstraints () const
void print () const

Private Attributes

BaseFuncObjm_pFuncObj
vector< DecVar > m_Vars
vector< Constraintm_Constraints
Modelm_pSelf
unsigned long m_nPrec
GoalType m_eGoal
bool m_bVerbose


Detailed Description

Definition at line 102 of file nlpmodel.cxx.


Constructor & Destructor Documentation

scsolver::numeric::nlp::ModelImpl::ModelImpl ( Model p  ) 

Definition at line 199 of file nlpmodel.cxx.

scsolver::numeric::nlp::ModelImpl::ModelImpl ( const ModelImpl other  ) 

Definition at line 208 of file nlpmodel.cxx.

scsolver::numeric::nlp::ModelImpl::~ModelImpl (  )  throw ()

Definition at line 214 of file nlpmodel.cxx.


Member Function Documentation

void scsolver::numeric::nlp::ModelImpl::setPrecision ( unsigned long  n  )  [inline]

Definition at line 109 of file nlpmodel.cxx.

unsigned long scsolver::numeric::nlp::ModelImpl::getPrecision (  )  const [inline]

Definition at line 110 of file nlpmodel.cxx.

void scsolver::numeric::nlp::ModelImpl::setGoal ( GoalType  e  )  [inline]

Definition at line 112 of file nlpmodel.cxx.

GoalType scsolver::numeric::nlp::ModelImpl::getGoal (  )  const [inline]

Definition at line 113 of file nlpmodel.cxx.

void scsolver::numeric::nlp::ModelImpl::setVerbose ( bool  b  )  [inline]

Definition at line 115 of file nlpmodel.cxx.

bool scsolver::numeric::nlp::ModelImpl::getVerbose (  )  const [inline]

Definition at line 116 of file nlpmodel.cxx.

void scsolver::numeric::nlp::ModelImpl::setFuncObject ( BaseFuncObj pFuncObj  ) 

Definition at line 218 of file nlpmodel.cxx.

References m_pFuncObj.

BaseFuncObj* scsolver::numeric::nlp::ModelImpl::getFuncObject (  )  const [inline]

Definition at line 119 of file nlpmodel.cxx.

void scsolver::numeric::nlp::ModelImpl::pushVar ( double  value  )  [inline]

Definition at line 121 of file nlpmodel.cxx.

void scsolver::numeric::nlp::ModelImpl::getVars ( vector< double > &  vars  )  const [inline]

Definition at line 128 of file nlpmodel.cxx.

double scsolver::numeric::nlp::ModelImpl::getVarBound ( size_t  index,
BoundType  bound 
) const [inline]

Definition at line 139 of file nlpmodel.cxx.

References scsolver::numeric::BOUND_LOWER, and scsolver::numeric::BOUND_UPPER.

void scsolver::numeric::nlp::ModelImpl::setVarBound ( size_t  index,
BoundType  bound,
double  value 
) [inline]

Definition at line 155 of file nlpmodel.cxx.

References scsolver::numeric::BOUND_LOWER, and scsolver::numeric::BOUND_UPPER.

bool scsolver::numeric::nlp::ModelImpl::isVarBounded ( size_t  index,
BoundType  bound 
) const [inline]

Definition at line 170 of file nlpmodel.cxx.

References scsolver::numeric::BOUND_LOWER, and scsolver::numeric::BOUND_UPPER.

void scsolver::numeric::nlp::ModelImpl::pushConstraint ( BaseFuncObj pFunc,
EqualityType  eq,
double  rightValue 
)

Definition at line 223 of file nlpmodel.cxx.

References m_Constraints.

const vector< Constraint > & scsolver::numeric::nlp::ModelImpl::getAllConstraints (  )  const

Definition at line 228 of file nlpmodel.cxx.

References m_Constraints.

void scsolver::numeric::nlp::ModelImpl::print (  )  const

Definition at line 233 of file nlpmodel.cxx.

References scsolver::numeric::BaseFuncObj::getFuncString(), scsolver::numeric::GOAL_MAXIMIZE, scsolver::numeric::GOAL_MINIMIZE, m_Constraints, m_eGoal, m_pFuncObj, and m_Vars.


Member Data Documentation

BaseFuncObj* scsolver::numeric::nlp::ModelImpl::m_pFuncObj [private]

Definition at line 189 of file nlpmodel.cxx.

Referenced by print(), and setFuncObject().

vector<DecVar> scsolver::numeric::nlp::ModelImpl::m_Vars [private]

Definition at line 190 of file nlpmodel.cxx.

Referenced by print().

vector<Constraint> scsolver::numeric::nlp::ModelImpl::m_Constraints [private]

Definition at line 191 of file nlpmodel.cxx.

Referenced by getAllConstraints(), print(), and pushConstraint().

Model* scsolver::numeric::nlp::ModelImpl::m_pSelf [private]

Definition at line 193 of file nlpmodel.cxx.

unsigned long scsolver::numeric::nlp::ModelImpl::m_nPrec [private]

Definition at line 194 of file nlpmodel.cxx.

GoalType scsolver::numeric::nlp::ModelImpl::m_eGoal [private]

Definition at line 195 of file nlpmodel.cxx.

Referenced by print().

bool scsolver::numeric::nlp::ModelImpl::m_bVerbose [private]

Definition at line 196 of file nlpmodel.cxx.


The documentation for this class was generated from the following file:
Generated on Mon Jul 28 09:13:52 2008 for scsolver by  doxygen 1.5.3