humoto
|
Solution of a QP.
Definition at line 21 of file solution.h.
#include <solution.h>
Public Member Functions | |
void | addSolutionPart (const std::string &id, const std::size_t length) |
Add part of the solution. More... | |
const Eigen::VectorXd & | get_x () const |
Returns solution vector. More... | |
Eigen::VectorBlock< Eigen::VectorXd > | getData (const Location &location) |
Get data from solution vector. More... | |
Eigen::VectorXd | getData (const Location &location) const |
Get data from solution vector. More... | |
Eigen::Block< Eigen::MatrixXd > | getMatrixPart (const std::string &id, Eigen::MatrixXd &matrix) const |
Get part of a matrix corresponding to given part of the solution. More... | |
const Eigen::Block< const Eigen::MatrixXd > | getMatrixPart (const std::string &id, const Eigen::MatrixXd &matrix) const |
Get part of a matrix corresponding to given part of the solution. More... | |
std::size_t | getNumberOfVariables () const |
Get total number of variables in the solution vector. More... | |
Eigen::VectorBlock< Eigen::VectorXd > | getSolutionPart (const std::string &id) |
Get part of the solution by its id. More... | |
Eigen::VectorXd | getSolutionPart (const std::string &id) const |
Get part of the solution by its id. More... | |
Location | getSolutionPartLocation (const std::string &id) const |
Get location of a data in the solution vector. More... | |
std::string | getStatusDescription () const |
Status description. More... | |
void | initialize (const SolutionStructure &sol_structure) |
Initialize the solution vector. More... | |
void | initialize (const SolutionStructure &sol_structure, const double value) |
Initialize the solution vector. More... | |
void | initialize (const SolutionStructure &sol_structure, const Solution &old_solution) |
Initialize the solution vector using an old solution. More... | |
bool | isNonEmpty () const |
Checks if the structure is empty or not. More... | |
void | log (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="solution") const |
Log a QP problem. More... | |
void | readConfig (t_Reader &reader, const bool crash_on_missing_entry=default_crash_on_missing_entry_) |
Read configuration (assuming the configuration node to be in the root). More... | |
void | readConfig (t_Reader &reader, const std::string &node_name, const bool crash_on_missing_entry=default_crash_on_missing_entry_) |
Read configuration (assuming the configuration node to be in the root). More... | |
void | readConfig (t_Reader &reader, const char *node_name, const bool crash_on_missing_entry=default_crash_on_missing_entry_) |
Read configuration (assuming the configuration node to be in the root). More... | |
void | readConfig (const std::string &file_name, const bool crash_on_missing_entry=default_crash_on_missing_entry_) |
Read configuration (assuming the configuration node to be in the root). More... | |
void | readConfig (const std::string &file_name, const std::string &node_name, const bool crash_on_missing_entry=default_crash_on_missing_entry_) |
Read configuration (assuming the configuration node to be in the root). More... | |
void | readConfig (const std::string &file_name, const char *node_name, const bool crash_on_missing_entry=default_crash_on_missing_entry_) |
Read configuration (assuming the configuration node to be in the root). More... | |
void | readNestedConfig (t_Reader &reader, const std::string &node_name, const bool crash_on_missing_entry=default_crash_on_missing_entry_) |
Read nested configuration node. More... | |
void | reset () |
Reset. More... | |
void | setDefaults () |
No defaults. More... | |
void | writeConfig (t_Writer &writer) const |
Write configuration. More... | |
void | writeConfig (t_Writer &writer, const std::string &node_name) const |
Write configuration. More... | |
void | writeConfig (const std::string &file_name) const |
Write configuration. More... | |
void | writeConfig (const std::string &file_name, const std::string &node_name) const |
Write configuration. More... | |
void | writeNestedConfig (t_Writer &writer) const |
Write nested configuration node. More... | |
void | writeNestedConfig (t_Writer &writer, const std::string &node_name) const |
Write nested configuration node. More... | |
Public Attributes | |
int | number_of_iterations_ |
Number of iterations made by the solver. More... | |
qpOASES::returnValue | qpoases_return_value_ |
The return value of qpOASES. More... | |
SolverStatus::Status | return_status_ |
Eigen::VectorXd | x_ |
Protected Member Functions | |
virtual void | finalize () |
This function is called automaticaly after reading a configuration file. Does nothing by default. More... | |
virtual const std::string & | getConfigSectionID () const=0 |
Return the default name of a configuration node corresponding to this class. More... | |
virtual std::size_t | getNumberOfEntries () const=0 |
Get number of entries in the corresponding configuration node. More... | |
Protected Attributes | |
std::size_t | number_of_variables_ |
std::map< std::string, Location > | variable_map_ |
Static Protected Attributes | |
static const bool | default_crash_on_missing_entry_ |
|
inlineinherited |
Add part of the solution.
[in] | id | string id of the solution part |
[in] | length | length of the solution part |
Definition at line 72 of file solution.h.
|
inlineprotectedvirtualinherited |
This function is called automaticaly after reading a configuration file. Does nothing by default.
Reimplemented in humoto::WeightedSimpleTaskBaseMixin< constraints::ConstraintsGIB< TaskBase > >, humoto::WeightedSimpleTaskBaseMixin< constraints::ConstraintsGILU< TaskBase > >, humoto::WeightedSimpleTaskBaseMixin< constraints::ConstraintsGIL< TaskBase > >, humoto::WeightedSimpleTaskBaseMixin< constraints::ConstraintsGIU< TaskBase > >, humoto::WeightedSimpleTaskBaseMixin< constraints::ConstraintsGIB0< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsAB< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsAB0< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsASU< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsASL< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsASLU< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsAU< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsAL< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsASB< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsALU< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsASB0< TaskBase > >, humoto::pepper_mpc::MPCParameters, humoto::pepper_mpc::MotionParameters, humoto::walking::RobotFootParameters, humoto::wpg04::MPCParameters, humoto::pepper_mpc::RobotParameters, humoto::pepper_ik::WBCParameters, humoto::pepper_ik::GeneralizedCoordinates< t_features >, humoto::wpg04::TaskCoPPosition, humoto::wpg04::TaskCoMVelocity, humoto::wpg04::TaskCoPVelocity, and humoto::wpg04::TaskTerminalConstraint.
|
inlineinherited |
Returns solution vector.
Definition at line 337 of file solution.h.
|
protectedpure virtualinherited |
Return the default name of a configuration node corresponding to this class.
Implemented in humoto::TaskBase.
|
inlineinherited |
Get data from solution vector.
[in] | location | location of the data |
Definition at line 294 of file solution.h.
|
inlineinherited |
Get data from solution vector.
[in] | location | location of the data |
Definition at line 323 of file solution.h.
|
inlineinherited |
Get part of a matrix corresponding to given part of the solution.
[in] | id | id of the data block |
[in] | matrix | matrix |
Definition at line 147 of file solution.h.
|
inlineinherited |
Get part of a matrix corresponding to given part of the solution.
[in] | id | id of the data block |
[in] | matrix | matrix |
Definition at line 163 of file solution.h.
|
protectedpure virtualinherited |
Get number of entries in the corresponding configuration node.
Implemented in humoto::ConfigurableOptimizationProblem.
|
inlineinherited |
Get total number of variables in the solution vector.
Definition at line 109 of file solution.h.
|
inlineinherited |
Get part of the solution by its id.
[in] | id | id of the solution part |
Definition at line 281 of file solution.h.
|
inlineinherited |
Get part of the solution by its id.
[in] | id | id of the solution part |
Definition at line 309 of file solution.h.
|
inlineinherited |
Get location of a data in the solution vector.
[in] | id | id of the data block |
Definition at line 122 of file solution.h.
|
inlinevirtual |
Status description.
Reimplemented from humoto::Solution.
Definition at line 37 of file solution.h.
|
inlineinherited |
Initialize the solution vector.
[in] | sol_structure | structure of the solution |
Definition at line 214 of file solution.h.
|
inlineinherited |
Initialize the solution vector.
[in] | sol_structure | structure of the solution |
[in] | value |
Definition at line 229 of file solution.h.
|
inlineinherited |
Initialize the solution vector using an old solution.
[in] | sol_structure | structure of the solution |
[in] | old_solution | old solution |
Definition at line 251 of file solution.h.
|
inlineinherited |
Checks if the structure is empty or not.
Definition at line 88 of file solution.h.
|
inlinevirtual |
Log a QP problem.
[in,out] | logger | logger |
[in] | parent | parent |
[in] | name | name |
Reimplemented from humoto::Solution.
Definition at line 55 of file solution.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Reset.
Definition at line 59 of file solution.h.
|
inlinevirtualinherited |
No defaults.
Implements humoto::config::CommonConfigurableBase< true >.
Definition at line 206 of file solution.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
staticprotectedinherited |
int humoto::qpoases::Solution::number_of_iterations_ |
Number of iterations made by the solver.
Definition at line 25 of file solution.h.
|
protectedinherited |
Definition at line 36 of file solution.h.
qpOASES::returnValue humoto::qpoases::Solution::qpoases_return_value_ |
The return value of qpOASES.
Definition at line 28 of file solution.h.
|
inherited |
Definition at line 187 of file solution.h.
|
protectedinherited |
Definition at line 37 of file solution.h.
|
inherited |
Definition at line 186 of file solution.h.