|
MLPACK
1.0.11
|
The objective function that LRSDP is trying to optimize. More...
Public Member Functions | |
| LRSDPFunction (const size_t numConstraints, const arma::mat &initialPoint) | |
| Construct the LRSDPFunction with the given initial point and number of constraints. More... | |
| const std::vector< arma::mat > & | A () const |
| Return the vector of A matrices (which correspond to the constraints). More... | |
| std::vector< arma::mat > & | A () |
| Modify the veector of A matrices (which correspond to the constraints). More... | |
| const arma::uvec & | AModes () const |
| Return the vector of modes for the A matrices. More... | |
| arma::uvec & | AModes () |
| Modify the vector of modes for the A matrices. More... | |
| const arma::vec & | B () const |
| Return the vector of B values. More... | |
| arma::vec & | B () |
| Modify the vector of B values. More... | |
| const arma::mat & | C () const |
| Return the objective function matrix (C). More... | |
| arma::mat & | C () |
| Modify the objective function matrix (C). More... | |
| double | Evaluate (const arma::mat &coordinates) const |
| Evaluate the objective function of the LRSDP (no constraints) at the given coordinates. More... | |
| double | EvaluateConstraint (const size_t index, const arma::mat &coordinates) const |
| Evaluate a particular constraint of the LRSDP at the given coordinates. More... | |
| const arma::mat & | GetInitialPoint () const |
| Get the initial point of the LRSDP. More... | |
| void | Gradient (const arma::mat &coordinates, arma::mat &gradient) const |
| Evaluate the gradient of the LRSDP (no constraints) at the given coordinates. More... | |
| void | GradientConstraint (const size_t index, const arma::mat &coordinates, arma::mat &gradient) const |
| Evaluate the gradient of a particular constraint of the LRSDP at the given coordinates. More... | |
| size_t | NumConstraints () const |
| Get the number of constraints in the LRSDP. More... | |
| std::string | ToString () const |
| Return string representation of object. More... | |
Private Attributes | |
| std::vector< arma::mat > | a |
| A_i for each constraint. More... | |
| arma::uvec | aModes |
| 1 if entries in matrix, 0 for normal. More... | |
| arma::vec | b |
| b_i for each constraint. More... | |
| arma::mat | c |
| Objective function matrix c. More... | |
| arma::mat | initialPoint |
| Initial point. More... | |
The objective function that LRSDP is trying to optimize.
Definition at line 35 of file lrsdp_function.hpp.
| mlpack::optimization::LRSDPFunction::LRSDPFunction | ( | const size_t | numConstraints, |
| const arma::mat & | initialPoint | ||
| ) |
Construct the LRSDPFunction with the given initial point and number of constraints.
Set the A, B, and C matrices for each constraint using the A(), B(), and C() functions.
|
inline |
Return the vector of A matrices (which correspond to the constraints).
Definition at line 83 of file lrsdp_function.hpp.
References a.
|
inline |
Modify the veector of A matrices (which correspond to the constraints).
Definition at line 85 of file lrsdp_function.hpp.
References a.
|
inline |
Return the vector of modes for the A matrices.
Definition at line 88 of file lrsdp_function.hpp.
References aModes.
|
inline |
Modify the vector of modes for the A matrices.
Definition at line 90 of file lrsdp_function.hpp.
References aModes.
|
inline |
|
inline |
|
inline |
Return the objective function matrix (C).
Definition at line 78 of file lrsdp_function.hpp.
References c.
|
inline |
Modify the objective function matrix (C).
Definition at line 80 of file lrsdp_function.hpp.
References c.
| double mlpack::optimization::LRSDPFunction::Evaluate | ( | const arma::mat & | coordinates | ) | const |
Evaluate the objective function of the LRSDP (no constraints) at the given coordinates.
| double mlpack::optimization::LRSDPFunction::EvaluateConstraint | ( | const size_t | index, |
| const arma::mat & | coordinates | ||
| ) | const |
Evaluate a particular constraint of the LRSDP at the given coordinates.
|
inline |
Get the initial point of the LRSDP.
Definition at line 75 of file lrsdp_function.hpp.
References initialPoint.
| void mlpack::optimization::LRSDPFunction::Gradient | ( | const arma::mat & | coordinates, |
| arma::mat & | gradient | ||
| ) | const |
Evaluate the gradient of the LRSDP (no constraints) at the given coordinates.
| void mlpack::optimization::LRSDPFunction::GradientConstraint | ( | const size_t | index, |
| const arma::mat & | coordinates, | ||
| arma::mat & | gradient | ||
| ) | const |
Evaluate the gradient of a particular constraint of the LRSDP at the given coordinates.
|
inline |
Get the number of constraints in the LRSDP.
Definition at line 72 of file lrsdp_function.hpp.
References b.
| std::string mlpack::optimization::LRSDPFunction::ToString | ( | ) | const |
Return string representation of object.
|
private |
|
private |
1 if entries in matrix, 0 for normal.
Definition at line 111 of file lrsdp_function.hpp.
Referenced by AModes().
|
private |
b_i for each constraint.
Definition at line 106 of file lrsdp_function.hpp.
Referenced by B(), and NumConstraints().
|
private |
|
private |
1.8.6