library: libQuadp #include "TQpDataBase.h"

# TQpDataBase

class description - source file - inheritance tree (.ps)

## class TQpDataBase : public TObject

| Inheritance Chart:

`TObject`

<-

`TQpDataBase`

<-

`TQpDataDens` |

`TQpDataSparse` |

This is an abstract class, constructors will not be documented.
Look at the header to check for available constructors.

        protected:

          static void RandomlyChooseBoundedVariables(TVectorD& x, TVectorD& dualx, TVectorD& blx, TVectorD& ixlow, TVectorD& bux, TVectorD& ixupp, Double_t& ix, Double_t percentLowerOnly, Double_t percentUpperOnly, Double_t percentBound)

        public:

                    virtual ~TQpDataBase()
               virtual void Amult(Double_t beta, TVectorD& y, Double_t alpha, const TVectorD& x)
               virtual void ATransmult(Double_t beta, TVectorD& y, Double_t alpha, const TVectorD& x)
             static TClass* Class()
               virtual void Cmult(Double_t beta, TVectorD& y, Double_t alpha, const TVectorD& x)
               virtual void CTransmult(Double_t beta, TVectorD& y, Double_t alpha, const TVectorD& x)
           virtual Double_t DataNorm()
               virtual void DataRandom(TVectorD& x, TVectorD& y, TVectorD& z, TVectorD& s)
          virtual TVectorD& GetBa()
               virtual void GetDiagonalOfQ(TVectorD& dQ)
          virtual TVectorD& GetG()
          virtual TVectorD& GetiSlowerBound()
          virtual TVectorD& GetiSupperBound()
          virtual TVectorD& GetiXlowerBound()
          virtual TVectorD& GetiXupperBound()
          virtual TVectorD& GetSlowerBound()
          virtual TVectorD& GetSupperBound()
          virtual TVectorD& GetXlowerBound()
          virtual TVectorD& GetXupperBound()
            virtual TClass* IsA() const
           virtual Double_t ObjectiveValue(TQpVar* vars)
               TQpDataBase& operator=(const TQpDataBase& source)
               virtual void PutAIntoAt(TMatrixDBase& M, Int_t row, Int_t col)
               virtual void PutCIntoAt(TMatrixDBase& M, Int_t row, Int_t col)
               virtual void PutQIntoAt(TMatrixDBase& M, Int_t row, Int_t col)
               virtual void Qmult(Double_t beta, TVectorD& y, Double_t alpha, const TVectorD& x)
               virtual void ShowMembers(TMemberInspector& insp, char* parent)
               virtual void Streamer(TBuffer& b)
                       void StreamerNVirtual(TBuffer& b)

### Data Members

        public:

             Int_t fNx
             Int_t fMy
             Int_t fMz
          TVectorD fG         linear part of Objective function
          TVectorD fBa        vector of equality constraint
          TVectorD fXupBound  Bounds on variables
          TVectorD fXupIndex
          TVectorD fXloBound
          TVectorD fXloIndex
          TVectorD fCupBound  Inequality constraints
          TVectorD fCupIndex
          TVectorD fCloBound
          TVectorD fCloIndex

## Class Description

     TQpDataBase

     Data for the general QP formulation

void RandomlyChooseBoundedVariables( TVectorD &x,TVectorD &dualx,TVectorD &xlow,TVectorD &ixlow, TVectorD &xupp,TVectorD &ixupp,Double_t &ix,Double_t percentLowerOnly, Double_t percentUpperOnly,Double_t percentBound)

     Initialize the upper and lower bounds on x

### Inline Functions

                    void ~TQpDataBase()
                    void PutQIntoAt(TMatrixDBase& M, Int_t row, Int_t col)
                    void PutAIntoAt(TMatrixDBase& M, Int_t row, Int_t col)
                    void PutCIntoAt(TMatrixDBase& M, Int_t row, Int_t col)
                    void Qmult(Double_t beta, TVectorD& y, Double_t alpha, const TVectorD& x)
                    void Amult(Double_t beta, TVectorD& y, Double_t alpha, const TVectorD& x)
                    void Cmult(Double_t beta, TVectorD& y, Double_t alpha, const TVectorD& x)
                    void ATransmult(Double_t beta, TVectorD& y, Double_t alpha, const TVectorD& x)
                    void CTransmult(Double_t beta, TVectorD& y, Double_t alpha, const TVectorD& x)
                    void GetDiagonalOfQ(TVectorD& dQ)
               TVectorD& GetG()
               TVectorD& GetBa()
               TVectorD& GetXupperBound()
               TVectorD& GetiXupperBound()
               TVectorD& GetXlowerBound()
               TVectorD& GetiXlowerBound()
               TVectorD& GetSupperBound()
               TVectorD& GetiSupperBound()
               TVectorD& GetSlowerBound()
               TVectorD& GetiSlowerBound()
                Double_t DataNorm()
                    void DataRandom(TVectorD& x, TVectorD& y, TVectorD& z, TVectorD& s)
                Double_t ObjectiveValue(TQpVar* vars)
            TQpDataBase& operator=(const TQpDataBase& source)
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)

Author: Eddy Offermann May 2004
Last update: root/quadp:$Name: $:$Id: TQpDataBase.cxx,v 1.2 2004/05/24 12:45:40 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *