roboptim::Problem< F, CLIST > Class Template Reference

#include <roboptim/core/problem.hh>

List of all members.

Public Types

typedef CLIST constraintsList_t
 Constraints types list.
typedef F function_t
 Function type.
typedef
boost::make_variant_over
< typename
detail::add_shared_ptr< CLIST >
::type >::type 
constraint_t
 Constraint's type.
typedef function_t::value_type value_type
typedef std::vector< constraint_tconstraints_t
 Constraints are represented as a vector of constraints.
typedef boost::optional
< Function::vector_t
startingPoint_t
 Optional vector defines a starting point.
typedef Function::interval_t interval_t
typedef Function::intervals_t intervals_t
typedef std::vector< value_typescales_t
 Scale vector.
typedef std::vector< intervals_tintervalsVect_t
 Vector of interval vectors.
typedef std::vector< scales_tscalesVect_t
 Vector of scale vectors.

Public Member Functions

std::ostream & print (std::ostream &o) const throw ()
 Display the problem on the specified output stream.
Constructors and destructors.
 Problem (const function_t &) throw ()
 Problem (const Problem< F, CLIST > &) throw ()
 Copy constructor.
template<typename F_ , typename CLIST_ >
 Problem (const Problem< F_, CLIST_ > &) throw ()
 Copy constructor (convert from another class of problem).
 ~Problem () throw ()
Cost function.
const function_tfunction () const throw ()
 Retrieve cost function.
intervals_targumentBounds () throw ()
 Retrieve arguments bounds.
const intervals_targumentBounds () const throw ()
 Retrieve arguments bounds.
scales_targumentScales () throw ()
 Retrieve arguments scales.
const scales_targumentScales () const throw ()
 Retrieve arguments scales.
Constraints.
const constraints_tconstraints () const throw ()
 Retrieve constraints.
template<typename C >
void addConstraint (boost::shared_ptr< C > constraint, interval_t interval, value_type scale=1.) throw (std::runtime_error)
 Add a constraint to the problem.
template<typename C >
void addConstraint (boost::shared_ptr< C > constraint, intervals_t intervals, scales_t scales) throw (std::runtime_error)
 Add a constraint to the problem.
const intervalsVect_tboundsVector () const throw ()
 Retrieve constraints bounds vector.
const scalesVect_tscalesVector () const throw ()
 Retrieve constraints scales vector.
Starting point (initial guess).
startingPoint_tstartingPoint () throw ()
 Set the initial guess.
const startingPoint_tstartingPoint () const throw ()
 Get the initial guess.

Friends

class Problem

Detailed Description

template<typename F, typename CLIST>
class roboptim::Problem< F, CLIST >

Examples:
problem-cc.cc.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines