Public Member Functions | Private Attributes | List of all members
ifopt::ExVariables Class Reference

#include <ex_problem.h>

Inheritance diagram for ifopt::ExVariables:
Inheritance graph
[legend]

Public Member Functions

 ExVariables ()
 
 ExVariables (const std::string &name)
 
VecBound GetBounds () const override
 Returns the "bounds" of this component. More...
 
virtual VectorXd GetValues () const override
 Returns the "values" of whatever this component represents. More...
 
virtual void SetVariables (const VectorXd &x) override
 Sets the optimization variables from an Eigen vector. More...
 
- Public Member Functions inherited from ifopt::VariableSet
virtual Jacobian GetJacobian () const overridefinal
 Returns derivatives of each row w.r.t. the variables. More...
 
 VariableSet (int n_var, const std::string &name)
 Creates a set of variables representing a single concept. More...
 
virtual ~VariableSet ()=default
 
- Public Member Functions inherited from ifopt::Component
 Component (int num_rows, const std::string &name)
 Creates a component. More...
 
std::string GetName () const
 Returns the name (id) of this component. More...
 
int GetRows () const
 Returns the number of rows of this component. More...
 
virtual void Print () const
 Prints the relevant information (name, rows, values) of this component. More...
 
void SetRows (int num_rows)
 Sets the number of rows of this component. More...
 
virtual ~Component ()=default
 

Private Attributes

double x0_
 
double x1_
 

Additional Inherited Members

- Public Types inherited from ifopt::Component
using Jacobian = Eigen::SparseMatrix< double, Eigen::RowMajor >
 
using Ptr = std::shared_ptr< Component >
 
using VecBound = std::vector< Bounds >
 
using VectorXd = Eigen::VectorXd
 
- Static Public Attributes inherited from ifopt::Component
static const int kSpecifyLater = -1
 

Detailed Description

Definition at line 54 of file ex_problem.h.

Constructor & Destructor Documentation

ifopt::ExVariables::ExVariables ( )
inline

Definition at line 58 of file ex_problem.h.

ifopt::ExVariables::ExVariables ( const std::string &  name)
inline

Definition at line 59 of file ex_problem.h.

Member Function Documentation

VecBound ifopt::ExVariables::GetBounds ( ) const
inlineoverridevirtual

Returns the "bounds" of this component.

  • For Variable these are the upper and lower variable bound.
  • For Constraint this represents the constraint bounds.
  • For Cost these done't exists (set to infinity).

Implements ifopt::Component.

Definition at line 83 of file ex_problem.h.

virtual VectorXd ifopt::ExVariables::GetValues ( ) const
inlineoverridevirtual

Returns the "values" of whatever this component represents.

  • For Variable this represents the actual optimization values.
  • For Constraint this represents the constraint value g.
  • For Cost this represents the cost value.

Implements ifopt::Component.

Definition at line 77 of file ex_problem.h.

virtual void ifopt::ExVariables::SetVariables ( const VectorXd x)
inlineoverridevirtual

Sets the optimization variables from an Eigen vector.

This is only done for Variable, where these are set from the current values of the NLP solvers.

Implements ifopt::Component.

Definition at line 69 of file ex_problem.h.

Member Data Documentation

double ifopt::ExVariables::x0_
private

Definition at line 92 of file ex_problem.h.

double ifopt::ExVariables::x1_
private

Definition at line 92 of file ex_problem.h.


The documentation for this class was generated from the following file:


ifopt_core
Author(s): Alexander W. Winkler
autogenerated on Fri Apr 20 2018 02:27:34