roboptim::DummySolver Class Reference

Dummy solver which always fails. More...

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

Inheritance diagram for roboptim::DummySolver:
Collaboration diagram for roboptim::DummySolver:

List of all members.

Public Types

typedef Solver< Function,
boost::mpl::vector< Function > > 
parent_t
 Define parent's 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.

Detailed Description

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.

Examples:
numeric-linear-function.cc, and numeric-quadratic-function.cc.

Member Typedef Documentation

typedef Solver<Function, boost::mpl::vector<Function> > roboptim::DummySolver::parent_t

Define parent's type.


Constructor & Destructor Documentation

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

Build a solver from a problem.

Parameters:
problemproblem that will be solved
roboptim::DummySolver::~DummySolver ( ) throw () [virtual]

Member Function Documentation

void roboptim::DummySolver::solve ( ) throw () [virtual]

Implement the solve algorithm.

Implement the solve method as required by the GenericSolver class.

Implements roboptim::GenericSolver.

References roboptim::GenericSolver::result_.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines