Dummy solver which always fails. More...
#include <roboptim/core/plugin/dummy.hh>
Public Types | |
typedef Solver< Function, boost::mpl::vector< Function > > | parent_t |
Define parent's type. | |
![]() | |
typedef Problem< Function, boost::mpl::vector< Function > > | problem_t |
Solver problem type. | |
![]() | |
enum | solutions { SOLVER_NO_SOLUTION, SOLVER_VALUE, SOLVER_VALUE_WARNINGS, SOLVER_ERROR } |
Define the kind of solution which has been found. More... | |
typedef Function::vector_t | vector_t |
Vector type imported from function class. | |
typedef boost::variant < NoSolution, Result, ResultWithWarnings, SolverError > | result_t |
Result type. |
Public Member Functions | |
DummySolver (const problem_t &problem) throw () | |
Build a solver from a problem. | |
virtual | ~DummySolver () throw () |
virtual void | solve () throw () |
Implement the solve algorithm. | |
![]() | |
Solver (const problem_t &problem) throw () | |
Instantiate a solver from a problem. | |
Solver (const Problem< F_, C_ > &problem) throw () | |
Instantiate a solver from a problem in a different problem class. | |
virtual | ~Solver () throw () |
const problem_t & | problem () const throw () |
Retrieve the problem. | |
virtual std::ostream & | print (std::ostream &) const throw () |
Display the solver on the specified output stream. | |
![]() | |
void | reset () throw () |
Force to restart the optimization. Reset the internal mechanism to force the solution to be re-computed next time getMinimum is called. | |
const result_t & | minimum () throw () |
Returns the function minimum This solves the problem automatically, if it has not yet been solved. | |
solutions | minimumType () throw () |
Determine real minimum type. | |
template<typename T > | |
const T & | getMinimum () throw (boost::bad_get) |
Get real result. | |
GenericSolver () throw () | |
GenericSolver (const GenericSolver &) throw () | |
virtual | ~GenericSolver () throw () |
Additional Inherited Members | |
![]() | |
const problem_t | problem_ |
Problem that will be solved. | |
![]() | |
result_t | result_ |
/brief Optimization result. |
Dummy solver which always fails.
This solver always fails but is always available as it does not rely on the plug-in mechanism.
It is also a good starting point for users that want to develop their own solver.
typedef Solver<Function, boost::mpl::vector<Function> > roboptim::DummySolver::parent_t |
Define parent's type.
|
explicit |
Build a solver from a problem.
problem | problem that will be solved |
|
virtual |
|
virtual |
Implement the solve algorithm.
Implement the solve method as required by the GenericSolver class.
Implements roboptim::GenericSolver.
References roboptim::GenericSolver::result_.