Quadratic Programming Solver.
More...
#include <QuadraticProgrammingSolver.hpp>
void julian::QuadraticProgrammingSolver::Matrix1dToArray |
( |
double * |
A, |
|
|
const arma::mat & |
B |
|
) |
| |
|
private |
Column matrix adapter.
Function adapts armadillo matrix to sparse matrix used by OOQP
void julian::QuadraticProgrammingSolver::MatrixToArray |
( |
int * |
row, |
|
|
int * |
col, |
|
|
double * |
A, |
|
|
const arma::mat & |
B |
|
) |
| |
|
private |
Matrix adapter.
Function adapts armadillo matrix to sparse matrix used by OOQP
void julian::QuadraticProgrammingSolver::setArgumentLowerConstrains |
( |
const arma::mat & |
input | ) |
|
void julian::QuadraticProgrammingSolver::setArgumentUpperConstrains |
( |
const arma::mat & |
input | ) |
|
void julian::QuadraticProgrammingSolver::setEqualityConstrainsMatrix |
( |
const arma::mat & |
input | ) |
|
Sets matrix E.
Sets matrix E.
void julian::QuadraticProgrammingSolver::setEqualityConstrainsVector |
( |
const arma::mat & |
input | ) |
|
Sets vector b.
Sets vector b.
void julian::QuadraticProgrammingSolver::setInfo |
( |
const bool |
input | ) |
|
void julian::QuadraticProgrammingSolver::setLinearTerm |
( |
const arma::mat & |
input | ) |
|
void julian::QuadraticProgrammingSolver::setNonEqualityConstrainsLowerVector |
( |
const arma::mat & |
input | ) |
|
void julian::QuadraticProgrammingSolver::setNonEqualityConstrainsMatrix |
( |
const arma::mat & |
input | ) |
|
void julian::QuadraticProgrammingSolver::setNonEqualityConstrainsUpperVector |
( |
const arma::mat & |
input | ) |
|
void julian::QuadraticProgrammingSolver::setQuadraticTerm |
( |
const arma::mat & |
input | ) |
|
arma::mat julian::QuadraticProgrammingSolver::solve |
( |
| ) |
|
Solves quadratic problem.
Algorithm used is primal-dual interior-point. Returns the vector of numbers which minimizes expression
- Examples:
- QPSolverExample.cpp.
void julian::QuadraticProgrammingSolver::SymetricMatrixToArray |
( |
int * |
row, |
|
|
int * |
col, |
|
|
double * |
A, |
|
|
const arma::mat & |
B |
|
) |
| |
|
private |
Symetric matrix adapter.
Function adapts armadillo matrix to sparse matrix used by OOQP
arma::mat julian::QuadraticProgrammingSolver::argument_lower_constrains_ |
|
private |
arma::mat julian::QuadraticProgrammingSolver::argument_upper_constrains_ |
|
private |
arma::mat julian::QuadraticProgrammingSolver::equality_constrains_matrix_ |
|
private |
Matrix E, representing an equality constrain.
arma::mat julian::QuadraticProgrammingSolver::equality_constrains_vector_ |
|
private |
arma::mat julian::QuadraticProgrammingSolver::linear_term_ |
|
private |
Matrix L, representing the linear term of cost function.
arma::mat julian::QuadraticProgrammingSolver::non_equality_constrains_lower_vector_ |
|
private |
arma::mat julian::QuadraticProgrammingSolver::non_equality_constrains_matrix_ |
|
private |
Matrix N, representing an non-equality constrain.
arma::mat julian::QuadraticProgrammingSolver::non_equality_constrains_upper_vector_ |
|
private |
arma::mat julian::QuadraticProgrammingSolver::quadratic_term_ |
|
private |
Matrix Q, representing the quadratic term of cost function.
bool julian::QuadraticProgrammingSolver::silent_ |
|
private |
If true solve function prints status of each iteration.
The documentation for this class was generated from the following files:
- C:/Unix/home/OEM/jULIAN/src/mathematics/numericalAlgorithms/QuadraticProgrammingSolver.hpp
- C:/Unix/home/OEM/jULIAN/src/mathematics/numericalAlgorithms/QuadraticProgrammingSolver.cpp