Dummy solver which always fails, but returns the last state of the solver. More...
#include <roboptim/core/plugin/dummy-laststate.hh>


Public Types | |
| typedef Solver< Function, boost::mpl::vector< Function > > | parent_t |
| Define parent's type. | |
Public Member Functions | |
| DummySolverLastState (const problem_t &problem) throw () | |
| Build a solver from a problem. | |
| virtual | ~DummySolverLastState () throw () |
| virtual void | solve () throw () |
| Implement the solve algorithm. | |
Dummy solver which always fails, but returns the last state of the solver.
The SolverError generated contains a dummy state of the solver (x, constraints etc.). These values can be obtained thanks to SolverError::lastState.
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::DummySolverLastState::parent_t |
Define parent's type.
| roboptim::DummySolverLastState::DummySolverLastState | ( | const problem_t & | problem | ) | throw () [explicit] |
Build a solver from a problem.
| problem | problem that will be solved |
| roboptim::DummySolverLastState::~DummySolverLastState | ( | ) | throw () [virtual] |
| void roboptim::DummySolverLastState::solve | ( | ) | throw () [virtual] |
Implement the solve algorithm.
Implement the solve method as required by the GenericSolver class.
Implements roboptim::GenericSolver.
References roboptim::Result::constraints, roboptim::Result::lambda, roboptim::GenericSolver::result_, roboptim::Result::value, and roboptim::Result::x.