template<class t_Base>
class humoto::constraints::BodyAMixin< t_Base >
Mixin representing matrix 'A' in a general constraint.
- Template Parameters
-
Definition at line 438 of file constraints_mixins.h.
#include <constraints_mixins.h>
|
| BodyAMixin () |
|
| ~BodyAMixin () |
| Protected destructor: prevent destruction of the child classes through a base pointer. More...
|
|
void | addATA (Eigen::MatrixXd &H) const |
| Compute 'A^T * A' for general equality constaints and save or add the result to H. More...
|
|
void | getATA (Eigen::MatrixXd &H) const |
| Compute 'A^T * A' for general equality constaints and save or add the result to H. More...
|
|
void | logBody (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="constraints") const |
| Log body. More...
|
|
void | resetBody (const std::size_t number_of_constraints, const bool initialize_matrices=false) |
| Initialize A. More...
|
|
◆ ~BodyAMixin()
Protected destructor: prevent destruction of the child classes through a base pointer.
Definition at line 449 of file constraints_mixins.h.
◆ BodyAMixin()
◆ addATA()
Compute 'A^T * A' for general equality constaints and save or add the result to H.
- Parameters
-
[in,out] | H | left lower triangular part of the result. |
- Attention
- Only the left lower triangular part of H is formed. Apply appropriate conversion with etools::convertLLTtoSymmetric() before using H.
Definition at line 503 of file constraints_mixins.h.
◆ copyBodyTo()
Copy body to the given matrix.
- Parameters
-
[in] | A | |
[in] | location | offset and length |
Definition at line 530 of file constraints_mixins.h.
◆ copyNegativeBodyTo()
Copy body to the given matrix.
- Parameters
-
[in] | A | |
[in] | location | offset and length |
Definition at line 540 of file constraints_mixins.h.
◆ getA() [1/2]
Get matrix A from general constraints: 'A*x = b', 'lb <= A*x <= ub'.
- Returns
- matrix A
Definition at line 517 of file constraints_mixins.h.
◆ getA() [2/2]
Get matrix A from general constraints: 'A*x = b', 'lb <= A*x <= ub'.
- Returns
- matrix A
Definition at line 523 of file constraints_mixins.h.
◆ getATA()
Compute 'A^T * A' for general equality constaints and save or add the result to H.
- Parameters
-
[in,out] | H | left lower triangular part of the result. |
- Attention
- Only the left lower triangular part of H is formed. Apply appropriate conversion with etools::convertLLTtoSymmetric() before using H.
Definition at line 495 of file constraints_mixins.h.
◆ getNumberOfConstraints()
Returns number of constraints in the task.
- Returns
- number of constraints
Definition at line 550 of file constraints_mixins.h.
◆ getProduct()
Compute A(i,:) * vector.
- Parameters
-
[in] | i | row index |
[in] | vector | vector |
- Returns
- result of multiplication
Definition at line 564 of file constraints_mixins.h.
◆ logBody()
Log body.
- Parameters
-
[in,out] | logger | logger |
[in] | parent | parent |
[in] | name | name |
Definition at line 476 of file constraints_mixins.h.
◆ resetBody()
Initialize A.
- Parameters
-
[in] | number_of_constraints | number of constraints |
[in] | initialize_matrices | initialize matrices using defaults |
Initialization:
Definition at line 462 of file constraints_mixins.h.
◆ A_
The documentation for this class was generated from the following file: