Logo ROOT   6.13/01
Reference Guide
List of all members | Public Member Functions | Public Attributes | Static Protected Member Functions | Protected Attributes | List of all members
TQpResidual Class Reference

Definition at line 61 of file TQpResidual.h.

Public Member Functions

 TQpResidual ()
 Constructor. More...
 
 TQpResidual (Int_t nx, Int_t my, Int_t mz, TVectorD &ixlow, TVectorD &ixupp, TVectorD &iclow, TVectorD &icupp)
 Constructor. More...
 
 TQpResidual (const TQpResidual &another)
 Copy constructor. More...
 
virtual ~TQpResidual ()
 
void Add_r3_xz_alpha (TQpVar *vars, Double_t alpha)
 Modify the "complementarity" component of the residuals, by adding the pairwise products of the complementary variables plus a constant alpha to this term. More...
 
void CalcResids (TQpDataBase *problem, TQpVar *vars)
 Calculate residuals, their norms, and duality complementarity gap, given a problem and variable set. More...
 
void Clear_r1r2 ()
 set the noncomplementarity components of the residual (the terms arising from the linear equalities in the KKT conditions) to 0. More...
 
void Clear_r3 ()
 set the complementarity component of the residuals to 0. More...
 
Double_t GetDualityGap ()
 
Double_t GetResidualNorm ()
 
TQpResidualoperator= (const TQpResidual &source)
 Assignment operator. More...
 
void Project_r3 (Double_t rmin, Double_t rmax)
 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]. More...
 
void Set_r3_xz_alpha (TQpVar *vars, Double_t alpha)
 Set the "complementarity" component of the residuals to the pairwise products of the complementary variables plus a constant alpha . More...
 
Bool_t ValidNonZeroPattern ()
 Check if vector elements as selected through array indices are non-zero. More...
 

Public Attributes

TVectorD fRA
 
TVectorD fRC
 
TVectorD fRgamma
 
TVectorD fRlambda
 
TVectorD fRphi
 
TVectorD fRpi
 
TVectorD fRQ
 
TVectorD fRt
 
TVectorD fRu
 
TVectorD fRv
 
TVectorD fRw
 
TVectorD fRz
 

Static Protected Member Functions

static void GondzioProjection (TVectorD &v, Double_t rmin, Double_t rmax)
 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]. More...
 

Protected Attributes

TVectorD fCloIndex
 
TVectorD fCupIndex
 
Double_t fDualityGap
 
Double_t fMclo
 
Double_t fMcup
 
Int_t fMy
 
Int_t fMz
 
Int_t fNx
 
Double_t fNxlo
 
Double_t fNxup
 
Double_t fResidualNorm
 
TVectorD fXloIndex
 
TVectorD fXupIndex
 

#include <TQpResidual.h>

Inheritance diagram for TQpResidual:
[legend]

Constructor & Destructor Documentation

◆ TQpResidual() [1/3]

TQpResidual::TQpResidual ( )

Constructor.

Definition at line 65 of file TQpResidual.cxx.

◆ TQpResidual() [2/3]

TQpResidual::TQpResidual ( Int_t  nx,
Int_t  my,
Int_t  mz,
TVectorD ixlow,
TVectorD ixupp,
TVectorD iclow,
TVectorD icupp 
)

Constructor.

Definition at line 83 of file TQpResidual.cxx.

◆ TQpResidual() [3/3]

TQpResidual::TQpResidual ( const TQpResidual another)

Copy constructor.

Definition at line 129 of file TQpResidual.cxx.

◆ ~TQpResidual()

virtual TQpResidual::~TQpResidual ( )
inlinevirtual

Definition at line 106 of file TQpResidual.h.

Member Function Documentation

◆ Add_r3_xz_alpha()

void TQpResidual::Add_r3_xz_alpha ( TQpVar vars,
Double_t  alpha 
)

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

Definition at line 239 of file TQpResidual.cxx.

◆ CalcResids()

void TQpResidual::CalcResids ( TQpDataBase prob_in,
TQpVar vars 
)

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

Definition at line 139 of file TQpResidual.cxx.

◆ Clear_r1r2()

void TQpResidual::Clear_r1r2 ( )

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

Definition at line 282 of file TQpResidual.cxx.

◆ Clear_r3()

void TQpResidual::Clear_r3 ( )

set the complementarity component of the residuals to 0.

Definition at line 269 of file TQpResidual.cxx.

◆ GetDualityGap()

Double_t TQpResidual::GetDualityGap ( )
inline

Definition at line 109 of file TQpResidual.h.

◆ GetResidualNorm()

Double_t TQpResidual::GetResidualNorm ( )
inline

Definition at line 108 of file TQpResidual.h.

◆ GondzioProjection()

void TQpResidual::GondzioProjection ( TVectorD v,
Double_t  rmin,
Double_t  rmax 
)
staticprotected

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.

Definition at line 359 of file TQpResidual.cxx.

◆ operator=()

TQpResidual & TQpResidual::operator= ( const TQpResidual source)

Assignment operator.

Definition at line 380 of file TQpResidual.cxx.

◆ Project_r3()

void TQpResidual::Project_r3 ( Double_t  rmin,
Double_t  rmax 
)

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.

Definition at line 301 of file TQpResidual.cxx.

◆ Set_r3_xz_alpha()

void TQpResidual::Set_r3_xz_alpha ( TQpVar vars,
Double_t  alpha 
)

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

Definition at line 259 of file TQpResidual.cxx.

◆ ValidNonZeroPattern()

Bool_t TQpResidual::ValidNonZeroPattern ( )

Check if vector elements as selected through array indices are non-zero.

Definition at line 325 of file TQpResidual.cxx.

Member Data Documentation

◆ fCloIndex

TVectorD TQpResidual::fCloIndex
protected

Definition at line 83 of file TQpResidual.h.

◆ fCupIndex

TVectorD TQpResidual::fCupIndex
protected

Definition at line 82 of file TQpResidual.h.

◆ fDualityGap

Double_t TQpResidual::fDualityGap
protected

Definition at line 66 of file TQpResidual.h.

◆ fMclo

Double_t TQpResidual::fMclo
protected

Definition at line 77 of file TQpResidual.h.

◆ fMcup

Double_t TQpResidual::fMcup
protected

Definition at line 76 of file TQpResidual.h.

◆ fMy

Int_t TQpResidual::fMy
protected

Definition at line 71 of file TQpResidual.h.

◆ fMz

Int_t TQpResidual::fMz
protected

Definition at line 72 of file TQpResidual.h.

◆ fNx

Int_t TQpResidual::fNx
protected

Definition at line 70 of file TQpResidual.h.

◆ fNxlo

Double_t TQpResidual::fNxlo
protected

Definition at line 75 of file TQpResidual.h.

◆ fNxup

Double_t TQpResidual::fNxup
protected

Definition at line 74 of file TQpResidual.h.

◆ fRA

TVectorD TQpResidual::fRA

Definition at line 89 of file TQpResidual.h.

◆ fRC

TVectorD TQpResidual::fRC

Definition at line 90 of file TQpResidual.h.

◆ fResidualNorm

Double_t TQpResidual::fResidualNorm
protected

Definition at line 65 of file TQpResidual.h.

◆ fRgamma

TVectorD TQpResidual::fRgamma

Definition at line 96 of file TQpResidual.h.

◆ fRlambda

TVectorD TQpResidual::fRlambda

Definition at line 98 of file TQpResidual.h.

◆ fRphi

TVectorD TQpResidual::fRphi

Definition at line 97 of file TQpResidual.h.

◆ fRpi

TVectorD TQpResidual::fRpi

Definition at line 99 of file TQpResidual.h.

◆ fRQ

TVectorD TQpResidual::fRQ

Definition at line 88 of file TQpResidual.h.

◆ fRt

TVectorD TQpResidual::fRt

Definition at line 94 of file TQpResidual.h.

◆ fRu

TVectorD TQpResidual::fRu

Definition at line 95 of file TQpResidual.h.

◆ fRv

TVectorD TQpResidual::fRv

Definition at line 92 of file TQpResidual.h.

◆ fRw

TVectorD TQpResidual::fRw

Definition at line 93 of file TQpResidual.h.

◆ fRz

TVectorD TQpResidual::fRz

Definition at line 91 of file TQpResidual.h.

◆ fXloIndex

TVectorD TQpResidual::fXloIndex
protected

Definition at line 81 of file TQpResidual.h.

◆ fXupIndex

TVectorD TQpResidual::fXupIndex
protected

Definition at line 80 of file TQpResidual.h.

Libraries for TQpResidual:
[legend]

The documentation for this class was generated from the following files: