#include <Mathematics/PLDPSolver.hh>
Public Member Functions | |
PLDPSolver (unsigned int CardU, double *iPu, double *Px, double *Pu, double *iLQ) | |
Constructor. More... | |
~PLDPSolver () | |
Destructor. More... | |
int | SolveProblem (double *CstPartOfTheCostFunction, unsigned int NbOfConstraints, double *LinearPartOfConstraints, double *CstPartOfConstraints, double *ZMPRef, double *XkYk, double *X, std::vector< int > &SimilarConstraint, unsigned int NumberOfRemovedConstraints, bool StartingSequence) |
Solve the optimization problem. More... | |
Protected Member Functions | |
void | InitializeSolver () |
void | AllocateMemoryForSolver () |
double | ComputeAlpha (vector< unsigned int > &NewActivatedConstraints, vector< int > &SimilarConstraint) |
void | StoreCurrentZMPSolution (double *XkYk) |
void | WriteCurrentZMPSolution (string filename, double *XkYk) |
Initial solution methods related | |
int | ComputeInitialSolution (double *ZMPRef, double *XkYk, bool StartingSequence) |
int | PrecomputeiPuPx () |
Projected descent direction methods related | |
int | ComputeProjectedDescentDirection () |
Compute Projected descent direction. More... | |
int | ForwardSubstitution () |
Forward substitution. First Phase EE^t v2 = v1 <-> LL^t v2 = v1 Now solving L y = v1. More... | |
int | BackwardSubstitution () |
Compute v2 q (14b) in Dimitrov 2009. Second phase a Now solving LL^t v2 = v1 <-> L y = v1 with L^t v2 = y y solved with first phase. So now we are looking for v2. More... | |
This class implements a two stage strategy to solve the following optimal problem:
PLDPSolver::PLDPSolver | ( | unsigned int | CardU, |
double * | iPu, | ||
double * | Px, | ||
double * | Pu, | ||
double * | iLQ | ||
) |
Constructor.
PLDPSolver::~PLDPSolver | ( | ) |
Destructor.
|
protected |
Allocate memory for solver.
|
protected |
|
protected |
Detecting violated constraints
|
protected |
|
protected |
Compute Projected descent direction.
|
protected |
|
protected |
Initialize the internal variables of the class.
int PLDPSolver::SolveProblem | ( | double * | CstPartOfTheCostFunction, |
unsigned int | NbOfConstraints, | ||
double * | LinearPartOfConstraints, | ||
double * | CstPartOfConstraints, | ||
double * | ZMPRef, | ||
double * | XkYk, | ||
double * | X, | ||
std::vector< int > & | SimilarConstraint, | ||
unsigned int | NumberOfRemovedConstraints, | ||
bool | StartingSequence | ||
) |
|
protected |