Warning, file /include/root/TQpDataBase.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043 #ifndef ROOT_TQpDataBase
0044 #define ROOT_TQpDataBase
0045
0046 #include "TError.h"
0047
0048 #include "TQpVar.h"
0049
0050 #include "TMatrixD.h"
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060 class TQpDataBase : public TObject
0061 {
0062
0063 protected:
0064
0065
0066
0067 static void RandomlyChooseBoundedVariables(TVectorD &x,TVectorD &dualx,TVectorD &blx,TVectorD &ixlow,
0068 TVectorD &bux,TVectorD &ixupp,Double_t &ix,Double_t percentLowerOnly,
0069 Double_t percentUpperOnly,Double_t percentBound);
0070
0071 public:
0072
0073 Int_t fNx;
0074 Int_t fMy;
0075 Int_t fMz;
0076
0077 TVectorD fG;
0078 TVectorD fBa;
0079 TVectorD fXupBound;
0080 TVectorD fXupIndex;
0081 TVectorD fXloBound;
0082 TVectorD fXloIndex;
0083 TVectorD fCupBound;
0084 TVectorD fCupIndex;
0085 TVectorD fCloBound;
0086 TVectorD fCloIndex;
0087
0088 TQpDataBase();
0089 TQpDataBase(Int_t nx,Int_t my,Int_t mz);
0090 TQpDataBase(const TQpDataBase &another);
0091 ~TQpDataBase() override {}
0092
0093 virtual void PutQIntoAt(TMatrixDBase &M,Int_t row,Int_t col) = 0;
0094 virtual void PutAIntoAt(TMatrixDBase &M,Int_t row,Int_t col) = 0;
0095 virtual void PutCIntoAt(TMatrixDBase &M,Int_t row,Int_t col) = 0;
0096
0097 virtual void Qmult (Double_t beta,TVectorD& y,Double_t alpha,const TVectorD& x) = 0;
0098 virtual void Amult (Double_t beta,TVectorD& y,Double_t alpha,const TVectorD& x) = 0;
0099 virtual void Cmult (Double_t beta,TVectorD& y,Double_t alpha,const TVectorD& x) = 0;
0100 virtual void ATransmult(Double_t beta,TVectorD& y,Double_t alpha,const TVectorD& x) = 0;
0101 virtual void CTransmult(Double_t beta,TVectorD& y,Double_t alpha,const TVectorD& x) = 0;
0102
0103 virtual void GetDiagonalOfQ(TVectorD &dQ) = 0;
0104
0105 virtual TVectorD &GetG () { return fG; }
0106 virtual TVectorD &GetBa () { return fBa; }
0107
0108 virtual TVectorD &GetXupperBound () { return fXupBound; }
0109 virtual TVectorD &GetiXupperBound() { return fXupIndex; }
0110 virtual TVectorD &GetXlowerBound () { return fXloBound; }
0111 virtual TVectorD &GetiXlowerBound() { return fXloIndex; }
0112 virtual TVectorD &GetSupperBound () { return fCupBound; }
0113 virtual TVectorD &GetiSupperBound() { return fCupIndex; }
0114 virtual TVectorD &GetSlowerBound () { return fCloBound; }
0115 virtual TVectorD &GetiSlowerBound() { return fCloIndex; }
0116
0117 virtual Double_t DataNorm () = 0;
0118 virtual void DataRandom (TVectorD &x,TVectorD &y,TVectorD &z,TVectorD &s) = 0;
0119 virtual Double_t ObjectiveValue(TQpVar *vars) = 0;
0120
0121 TQpDataBase &operator= (const TQpDataBase &source);
0122
0123 ClassDefOverride(TQpDataBase,1)
0124 };
0125 #endif