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

QpExampleResids Class Reference
[QpExample]

#include <QpExampleResids.h>

Inheritance diagram for QpExampleResids:

Residuals List of all members.

Public Member Functions

 QpExampleResids (LinearAlgebraPackage *la, int nx_in, int my_in, int mz_in)
virtual void calcresids (Data *problem, Variables *vars)
virtual void add_r3_xz_alpha (Variables *vars, double alpha)
virtual void set_r3_xz_alpha (Variables *vars, double alpha)
virtual void clear_r1r2 ()
virtual void clear_r3 ()
virtual void project_r3 (double rmin, double rmax)

Public Attributes

OoqpVectorrQ
OoqpVectorrA
OoqpVectorrC
OoqpVectorr3

Protected Attributes

int nx
int my
int mz

Detailed Description

Residuals for the example QP formulation


Member Function Documentation

virtual void QpExampleResids::add_r3_xz_alpha Variables vars,
double  alpha
[virtual]
 

Modify the "complementarity" component of the residuals, by adding the pairwise products of the complementary variables plus a constant alpha to this term.

Implements Residuals.

virtual void QpExampleResids::calcresids Data problem,
Variables vars
[virtual]
 

calculate residuals, their norms, and duality/complementarity gap, given a problem and variable set.

Implements Residuals.

virtual void QpExampleResids::clear_r1r2  )  [virtual]
 

set the noncomplementarity components of the residual (the terms arising from the linear equalities in the KKT conditions) to 0.

Reimplemented from Residuals.

virtual void QpExampleResids::clear_r3  )  [virtual]
 

set the complementarity component of the residuals to 0.

Implements Residuals.

virtual void QpExampleResids::project_r3 double  rmin,
double  rmax
[virtual]
 

perform the projection operation required by Gondzio algorithm: replace each component r3_i of the complementarity component of the residuals by r3p_i - r3_i, where r3p_i is the projection of r3_i onto the box [rmin, rmax]. Then if the resulting value is less than -rmax, replace it by -rmax.

See also:
SimpleVector::gondzioProjection

Implements Residuals.

virtual void QpExampleResids::set_r3_xz_alpha Variables vars,
double  alpha
[virtual]
 

Set the "complementarity" component of the residuals to the pairwise products of the complementary variables plus a constant alpha

Implements Residuals.


Member Data Documentation

int QpExampleResids::my [protected]
 

number of equality constraints

int QpExampleResids::mz [protected]
 

number of inequality constraints

int QpExampleResids::nx [protected]
 

number of components in x

OoqpVector* QpExampleResids::r3
 

residual for complementarity condition

OoqpVector* QpExampleResids::rA
 

residual for KKT condition involving A, b

OoqpVector* QpExampleResids::rC
 

residual for KKT condition involving C, d

OoqpVector* QpExampleResids::rQ
 

residual for KKT condition involving Q, A, C, c


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