Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

QpExampleDenseLinsys Class Reference
[QpExample]

#include <QpExampleDenseLinsys.h>

Inheritance diagram for QpExampleDenseLinsys:

LinearSystem List of all members.

Public Member Functions

 QpExampleDenseLinsys (LinearAlgebraPackage *la, DenseSymMatrix *Mat, DoubleLinearSolver *solver, int nx, int my, int mz)
virtual void factor (Data *prob, Variables *vars)
virtual void solve (Data *prob, Variables *vars, Residuals *rhs, Variables *step)
virtual void joinRHS (OoqpVector &rhs1, OoqpVector &rhs2, OoqpVector &rhs)
virtual void separateVars (OoqpVector &vars, OoqpVector &vars1, OoqpVector &vars2)

Protected Attributes

DenseSymMatrixMat
int nx
int my
int mz
DoubleLinearSolversolver
LinearAlgebraPackagela

Detailed Description

Linear system solver for example QP formulation, assuming dense data.


Member Function Documentation

virtual void QpExampleDenseLinsys::factor Data prob,
Variables vars
[virtual]
 

form the linear system and call the LAPACK-based routine to solve it

Implements LinearSystem.

virtual void QpExampleDenseLinsys::joinRHS OoqpVector rhs1,
OoqpVector rhs2,
OoqpVector rhs
[virtual]
 

assembles a single vector object from two given vectors

Parameters:
rhs (output) final joined vector
rhs1 (input) first part of rhs
rhs2 (input) last part of rhs

virtual void QpExampleDenseLinsys::separateVars OoqpVector vars,
OoqpVector vars1,
OoqpVector vars2
[virtual]
 

extracts three component vectors from a given aggregated vector.

Parameters:
vars (input) aggregated vector
vars1 (output) first part of vars
vars2 (output) last part of vars

virtual void QpExampleDenseLinsys::solve Data prob,
Variables vars,
Residuals rhs,
Variables step
[virtual]
 

solve the system for a given set of residuals

Implements LinearSystem.


Member Data Documentation

DenseSymMatrix* QpExampleDenseLinsys::Mat [protected]
 

stores the coefficient matrix in "augmented system" form, and the factor

int QpExampleDenseLinsys::my [protected]
 

number of equality constraints

int QpExampleDenseLinsys::mz [protected]
 

number of inequality constraints

int QpExampleDenseLinsys::nx [protected]
 

number of components in x

DoubleLinearSolver* QpExampleDenseLinsys::solver [protected]
 

pointer to LAPACK solver


The documentation for this class was generated from the following file:
Generated on Wed Mar 22 13:58:34 2006 for OOQP by doxygen 1.3.5