#include <roboptim/core/problem.hh>
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_t > | constraints_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_type > | scales_t |
| Scale vector. | |
| typedef std::vector< intervals_t > | intervalsVect_t |
| Vector of interval vectors. | |
| typedef std::vector< scales_t > | scalesVect_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_t & | function () const throw () |
| Retrieve cost function. | |
| intervals_t & | argumentBounds () throw () |
| Retrieve arguments bounds. | |
| const intervals_t & | argumentBounds () const throw () |
| Retrieve arguments bounds. | |
| scales_t & | argumentScales () throw () |
| Retrieve arguments scales. | |
| const scales_t & | argumentScales () const throw () |
| Retrieve arguments scales. | |
Constraints. | |
| const constraints_t & | constraints () 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_t & | boundsVector () const throw () |
| Retrieve constraints bounds vector. | |
| const scalesVect_t & | scalesVector () const throw () |
| Retrieve constraints scales vector. | |
Starting point (initial guess). | |
| startingPoint_t & | startingPoint () throw () |
| Set the initial guess. | |
| const startingPoint_t & | startingPoint () const throw () |
| Get the initial guess. | |
Friends | |
| class | Problem |