#include "numeric/funcobj.hxx"#include "numeric/baselinesearch.hxx"#include "numeric/nlpbase.hxx"#include "numeric/nlpmodel.hxx"#include "numeric/type.hxx"#include <stdio.h>#include <string>#include <memory>#include <vector>


Go to the source code of this file.
Classes | |
| class | SingleVarTestFuncBase |
Functions | |
| template<typename DoubleContainerType> | |
| void | printContainer (typename DoubleContainerType::const_iterator begin, typename DoubleContainerType::const_iterator end, const char *msg) |
| void | runSingleVarTestFunc (::scsolver::numeric::BaseLineSearch *_lineSearch,::scsolver::numeric::SingleVarFuncObj *_funcObj,::scsolver::numeric::GoalType _goal=::scsolver::numeric::GOAL_MINIMIZE) |
| void | runNonLinearTest (::scsolver::numeric::nlp::BaseAlgorithm *_nlpSolver,::scsolver::numeric::BaseFuncObj *_funcObj) |
| void printContainer | ( | typename DoubleContainerType::const_iterator | begin, | |
| typename DoubleContainerType::const_iterator | end, | |||
| const char * | msg | |||
| ) | [inline] |
Definition at line 63 of file testtool.hxx.
| void runNonLinearTest | ( | ::scsolver::numeric::nlp::BaseAlgorithm * | _nlpSolver, | |
| ::scsolver::numeric::BaseFuncObj * | _funcObj | |||
| ) |
Run a single test for non-linear programming algorithm. The initial variables must be passed with the function object. This function manages the life cycles of the algorithm and the function object instances, so the calling function does not need to delete these instances once they are passed to this function.
| _nlpSolver | new'ed NLP algorithm implementation instance. | |
| _funcObj | new'ed NLP function object instance. |
Definition at line 119 of file testtool.hxx.
References scsolver::numeric::GOAL_MINIMIZE.
Referenced by main().
| void runSingleVarTestFunc | ( | ::scsolver::numeric::BaseLineSearch * | _lineSearch, | |
| ::scsolver::numeric::SingleVarFuncObj * | _funcObj, | |||
| ::scsolver::numeric::GoalType | _goal = ::scsolver::numeric::GOAL_MINIMIZE | |||
| ) |
Definition at line 79 of file testtool.hxx.
References scsolver::numeric::GOAL_MAXIMIZE, scsolver::numeric::GOAL_MINIMIZE, and scsolver::numeric::GOAL_UNKNOWN.
1.5.3