TQpProbSparse.h

Go to the documentation of this file.
00001 // @(#)root/quadp:$Id: TQpProbSparse.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Eddy Offermann   May 2004
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 /*************************************************************************
00013  * Parts of this file are copied from the OOQP distribution and          *
00014  * are subject to the following license:                                 *
00015  *                                                                       *
00016  * COPYRIGHT 2001 UNIVERSITY OF CHICAGO                                  *
00017  *                                                                       *
00018  * The copyright holder hereby grants you royalty-free rights to use,    *
00019  * reproduce, prepare derivative works, and to redistribute this software*
00020  * to others, provided that any changes are clearly documented. This     *
00021  * software was authored by:                                             *
00022  *                                                                       *
00023  *   E. MICHAEL GERTZ      gertz@mcs.anl.gov                             *
00024  *   Mathematics and Computer Science Division                           *
00025  *   Argonne National Laboratory                                         *
00026  *   9700 S. Cass Avenue                                                 *
00027  *   Argonne, IL 60439-4844                                              *
00028  *                                                                       *
00029  *   STEPHEN J. WRIGHT     swright@cs.wisc.edu                           *
00030  *   Computer Sciences Department                                        *
00031  *   University of Wisconsin                                             *
00032  *   1210 West Dayton Street                                             *
00033  *   Madison, WI 53706   FAX: (608)262-9777                              *
00034  *                                                                       *
00035  * Any questions or comments may be directed to one of the authors.      *
00036  *                                                                       *
00037  * ARGONNE NATIONAL LABORATORY (ANL), WITH FACILITIES IN THE STATES OF   *
00038  * ILLINOIS AND IDAHO, IS OWNED BY THE UNITED STATES GOVERNMENT, AND     *
00039  * OPERATED BY THE UNIVERSITY OF CHICAGO UNDER PROVISION OF A CONTRACT   *
00040  * WITH THE DEPARTMENT OF ENERGY.                                        *
00041  *************************************************************************/
00042 
00043 #ifndef ROOT_TQpProbSparse
00044 #define ROOT_TQpProbSparse
00045 
00046 #include "TQpProbBase.h"
00047 #ifndef ROOT_TQpDataSparse
00048 #include "TQpDataSparse.h"
00049 #endif
00050 #ifndef ROOT_TQpVars
00051 #include "TQpVar.h"
00052 #endif
00053 #ifndef ROOT_TQpLinSolverSparse
00054 #include "TQpLinSolverSparse.h"
00055 #endif
00056 
00057 //////////////////////////////////////////////////////////////////////////
00058 //                                                                      //
00059 // TQpProbSparse                                                        //
00060 //                                                                      //
00061 // sparse matrix problem formulation                                    //
00062 //                                                                      //
00063 //////////////////////////////////////////////////////////////////////////
00064 
00065 class TQpProbSparse : public TQpProbBase
00066 {
00067 
00068 public:
00069 
00070    TQpProbSparse() {}
00071    TQpProbSparse(Int_t nx,Int_t my,Int_t mz);
00072    TQpProbSparse(const TQpProbSparse &another);
00073 
00074    virtual ~TQpProbSparse() {}
00075 
00076 #ifndef __CINT__
00077    virtual TQpDataBase      *MakeData      (Double_t *c,
00078                                             Int_t nnzQ,Int_t *irowQ,Int_t *icolQ,Double_t *Q,
00079                                             Double_t *xlo,Bool_t *ixlo,
00080                                             Double_t *xup,Bool_t *ixup,
00081                                             Int_t nnzA,Int_t *irowA,Int_t *icolA,Double_t *A,
00082                                             Double_t *bA,
00083                                             Int_t nnzC,Int_t *irowC,Int_t *icolC,Double_t *C,
00084                                             Double_t *clo,Bool_t *iclo,
00085                                             Double_t *cup,Bool_t *icup);
00086 #endif
00087    virtual TQpDataBase      *MakeData     (TVectorD     &c,
00088                                             TMatrixDBase &Q_in,
00089                                             TVectorD     &xlo, TVectorD &ixlo,
00090                                             TVectorD     &xup, TVectorD &ixup,
00091                                             TMatrixDBase &A_in,TVectorD &bA,
00092                                             TMatrixDBase &C_in,
00093                                             TVectorD     &clo, TVectorD &iclo,
00094                                             TVectorD     &cup, TVectorD &icup);
00095    virtual TQpResidual      *MakeResiduals(const TQpDataBase *data);
00096    virtual TQpVar           *MakeVariables(const TQpDataBase *data);
00097    virtual TQpLinSolverBase *MakeLinSys   (const TQpDataBase *data);
00098 
00099    virtual void JoinRHS       (TVectorD &rhs_in,TVectorD &rhs1_in,TVectorD &rhs2_in,TVectorD &rhs3_in);
00100    virtual void SeparateVars  (TVectorD &x_in,TVectorD &y_in,TVectorD &z_in,TVectorD &vars_in);
00101            void MakeRandomData(TQpDataSparse *&data,TQpVar *&soln,Int_t nnzQ,Int_t nnzA,Int_t nnzC);
00102 
00103    TQpProbSparse &operator=(const TQpProbSparse &source);
00104    
00105    ClassDef(TQpProbSparse,1)                   // Qp sparse problem formulation class
00106 };
00107 #endif

Generated on Tue Jul 5 14:28:05 2011 for ROOT_528-00b_version by  doxygen 1.5.1