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

#include <roboptim/core/problem.hh>

List of all members.

Public Types

typedef detail::list_converter
< CLIST >::type 
constraintsList_t
 Constraints types list.
typedef F function_t
 Function type.
typedef
detail::shared_ptr_variant
< constraintsList_t >::type 
constraint_t
 Constraint's type.
typedef function_t::value_type value_type
 Import function's value_type type.
typedef function_t::vector_t vector_t
 Vector type.
typedef function_t::argument_t argument_t
 Argument type.
typedef function_t::size_type size_type
 Size type.
typedef std::vector< constraint_tconstraints_t
 Constraints are represented as a vector of constraints.
typedef boost::optional
< argument_t
startingPoint_t
 Optional vector defines a starting point.
typedef function_t::interval_t interval_t
 Interval type (e.g. for bounds).
typedef function_t::intervals_t intervals_t
 Intervals type.
typedef std::vector< value_typescales_t
 Scale vector.
typedef function_t::names_t names_t
 Vector of names (e.g. for arguments).
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
 Display the problem on the specified output stream.
Constructors and destructors.
 Problem (const function_t &cost)
 Problem (const Problem< F, CLIST > &pb)
 Copy constructor.
template<typename F_ , typename CLIST_ >
 Problem (const Problem< F_, CLIST_ > &pb)
 Copy constructor (convert from another class of problem).
 ~Problem ()
Cost function.
const function_tfunction () const
 Retrieve cost function.
intervals_targumentBounds ()
 Retrieve arguments bounds.
const intervals_targumentBounds () const
 Retrieve arguments bounds.
scales_targumentScales ()
 Retrieve arguments scales.
const scales_targumentScales () const
 Retrieve arguments scales.
names_targumentNames ()
 Retrieve arguments names.
const names_targumentNames () const
 Retrieve arguments names.
Constraints.
const constraints_tconstraints () const
 Retrieve constraints.
template<typename C >
void addConstraint (boost::shared_ptr< C > constraint, interval_t interval, value_type scale=1.)
 Add a constraint to the problem.
template<typename C >
void addConstraint (boost::shared_ptr< C > constraint, intervals_t intervals, scales_t scales)
 Add a constraint to the problem.
const intervalsVect_tboundsVector () const
 Retrieve constraints bounds vector.
const scalesVect_tscalesVector () const
 Retrieve constraints scales vector.
Starting point (initial guess).
startingPoint_tstartingPoint ()
 Set the initial guess.
const startingPoint_tstartingPoint () const
 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