
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) |
| BaseFuncObj * | getFuncObject () 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 | |
| BaseFuncObj * | m_pFuncObj |
| vector< DecVar > | m_Vars |
| vector< Constraint > | m_Constraints |
| Model * | m_pSelf |
| unsigned long | m_nPrec |
| GoalType | m_eGoal |
| bool | m_bVerbose |
Definition at line 102 of file nlpmodel.cxx.
| 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.
| 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 | ) |
| 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 | |||
| ) |
| const vector< Constraint > & scsolver::numeric::nlp::ModelImpl::getAllConstraints | ( | ) | const |
| 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.
vector<DecVar> scsolver::numeric::nlp::ModelImpl::m_Vars [private] |
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.
bool scsolver::numeric::nlp::ModelImpl::m_bVerbose [private] |
Definition at line 196 of file nlpmodel.cxx.
1.5.3