roboptim::DummySolverLastState Class Reference

Dummy solver which always fails, but returns the last state of the solver. More...

#include <roboptim/core/plugin/dummy-laststate.hh>

Inheritance diagram for roboptim::DummySolverLastState:
Collaboration diagram for roboptim::DummySolverLastState:

List of all members.

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.

Detailed Description

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.


Member Typedef Documentation

Define parent's type.


Constructor & Destructor Documentation

roboptim::DummySolverLastState::DummySolverLastState ( const problem_t problem) throw () [explicit]

Build a solver from a problem.

Parameters:
problemproblem that will be solved

Member Function Documentation

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines