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

#include <roboptim/core/problem.hh>

Public Types

typedef detail::list_converter< CLIST >::type constraintsList_t
 Constraints types list. More...
 
typedef F function_t
 Function type. More...
 
typedef detail::shared_ptr_variant< constraintsList_t >::type constraint_t
 Constraint's type. More...
 
typedef function_t::value_type value_type
 Import function's value_type type. More...
 
typedef function_t::vector_t vector_t
 Vector type. More...
 
typedef function_t::argument_t argument_t
 Argument type. More...
 
typedef function_t::size_type size_type
 Size type. More...
 
typedef std::vector< constraint_tconstraints_t
 Constraints are represented as a vector of constraints. More...
 
typedef boost::optional< argument_tstartingPoint_t
 Optional vector defines a starting point. More...
 
typedef function_t::interval_t interval_t
 Interval type (e.g. for bounds). More...
 
typedef function_t::intervals_t intervals_t
 Intervals type. More...
 
typedef std::vector< value_typescaling_t
 Scaling vector. More...
 
typedef scaling_t scales_t ROBOPTIM_CORE_DEPRECATED
 Scaling vector (deprecated typedef) More...
 
typedef function_t::names_t names_t
 Vector of names (e.g. for arguments). More...
 
typedef std::vector< intervals_tintervalsVect_t
 Vector of interval vectors. More...
 
typedef std::vector< scaling_tscalingVect_t
 Vector of scaling vectors. More...
 
typedef scalingVect_t scalesVect_t ROBOPTIM_CORE_DEPRECATED
 Vector of scaling vectors (deprecated typedef). More...
 

Public Member Functions

std::ostream & print (std::ostream &o) const
 Display the problem on the specified output stream. More...
 
Constructors and destructors.
 Problem (const function_t &cost)
 
 Problem (const Problem< F, CLIST > &pb)
 Copy constructor. More...
 
template<typename F_ , typename CLIST_ >
 Problem (const Problem< F_, CLIST_ > &pb)
 Copy constructor (convert from another class of problem). More...
 
virtual ~Problem ()
 Virtual destructor. More...
 
Cost function.
const function_tfunction () const
 Retrieve cost function. More...
 
intervals_targumentBounds ()
 Retrieve arguments bounds. More...
 
const intervals_targumentBounds () const
 Retrieve arguments bounds. More...
 
scaling_targumentScaling ()
 Retrieve arguments scaling. More...
 
const scaling_targumentScaling () const
 Retrieve arguments scaling. More...
 
scales_t & argumentScales () ROBOPTIM_CORE_DEPRECATED
 Retrieve arguments scaling (deprecated version). More...
 
const scales_t & argumentScales () const ROBOPTIM_CORE_DEPRECATED
 Retrieve arguments scaling (deprecated version). More...
 
names_targumentNames ()
 Retrieve arguments names. More...
 
const names_targumentNames () const
 Retrieve arguments names. More...
 
Constraints.
const constraints_tconstraints () const
 Retrieve constraints. More...
 
template<typename C >
void addConstraint (boost::shared_ptr< C > constraint, interval_t interval, value_type scale=1.)
 Add a constraint to the problem. More...
 
template<typename C >
void addConstraint (boost::shared_ptr< C > constraint, intervals_t intervals, scaling_t scaling)
 Add a constraint to the problem. More...
 
const intervalsVect_tboundsVector () const
 Retrieve constraints bounds vector. More...
 
const scalingVect_tscalingVector () const
 Retrieve constraints scaling vector. More...
 
const scalesVect_t & scalesVector () const ROBOPTIM_CORE_DEPRECATED
 Retrieve constraints scaling vector (deprecated version). More...
 
Starting point (initial guess).
startingPoint_tstartingPoint ()
 Set the initial guess. More...
 
const startingPoint_tstartingPoint () const
 Get the initial guess. More...
 

Friends

template<typename F_ , typename CLIST_ >
class Problem
 

Detailed Description

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

Examples:
problem-cc.cc.