Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TMehrotraSolver.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/quadp:$Id$
0002 // Author: Eddy Offermann   May 2004
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 /*************************************************************************
0013  * Parts of this file are copied from the OOQP distribution and          *
0014  * are subject to the following license:                                 *
0015  *                                                                       *
0016  * COPYRIGHT 2001 UNIVERSITY OF CHICAGO                                  *
0017  *                                                                       *
0018  * The copyright holder hereby grants you royalty-free rights to use,    *
0019  * reproduce, prepare derivative works, and to redistribute this software*
0020  * to others, provided that any changes are clearly documented. This     *
0021  * software was authored by:                                             *
0022  *                                                                       *
0023  *   E. MICHAEL GERTZ      gertz@mcs.anl.gov                             *
0024  *   Mathematics and Computer Science Division                           *
0025  *   Argonne National Laboratory                                         *
0026  *   9700 S. Cass Avenue                                                 *
0027  *   Argonne, IL 60439-4844                                              *
0028  *                                                                       *
0029  *   STEPHEN J. WRIGHT     swright@cs.wisc.edu                           *
0030  *   Computer Sciences Department                                        *
0031  *   University of Wisconsin                                             *
0032  *   1210 West Dayton Street                                             *
0033  *   Madison, WI 53706   FAX: (608)262-9777                              *
0034  *                                                                       *
0035  * Any questions or comments may be directed to one of the authors.      *
0036  *                                                                       *
0037  * ARGONNE NATIONAL LABORATORY (ANL), WITH FACILITIES IN THE STATES OF   *
0038  * ILLINOIS AND IDAHO, IS OWNED BY THE UNITED STATES GOVERNMENT, AND     *
0039  * OPERATED BY THE UNIVERSITY OF CHICAGO UNDER PROVISION OF A CONTRACT   *
0040  * WITH THE DEPARTMENT OF ENERGY.                                        *
0041  *************************************************************************/
0042 
0043 #ifndef ROOT_TMehrotraSolver
0044 #define ROOT_TMehrotraSolver
0045 
0046 #include "TQpSolverBase.h"
0047 
0048 ///////////////////////////////////////////////////////////////////////////
0049 //                                                                       //
0050 // Derived class of TQpSolverBase implementing the original Mehrotra     //
0051 // predictor-corrector algorithm                                         //
0052 //                                                                       //
0053 ///////////////////////////////////////////////////////////////////////////
0054 
0055 class TMehrotraSolver : public TQpSolverBase
0056 {
0057 protected:
0058 
0059    Int_t        fPrintlevel;                   // parameter in range [0,100] determines verbosity. (Higher value
0060                                                //  => more verbose.)
0061    Double_t     fTsig;                         // exponent in Mehrotra's centering parameter, which is usually
0062                                                // chosen to me (muaff/mu)^tsig, where muaff is the predicted
0063                                                // complementarity gap obtained from an affine-scaling step, while
0064                                                // mu is the current complementarity gap
0065 
0066    TQpVar      *fStep;                         // storage for step vectors
0067 
0068    TQpProbBase *fFactory;
0069 
0070 public:
0071 
0072    TMehrotraSolver();
0073    TMehrotraSolver(TQpProbBase *of,TQpDataBase *prob,Int_t verbose=0);
0074    TMehrotraSolver(const TMehrotraSolver &another);
0075 
0076    ~TMehrotraSolver() override;
0077 
0078    Int_t Solve           (TQpDataBase *prob,TQpVar *iterate,TQpResidual *resid) override;
0079    void  DefMonitor      (TQpDataBase *data,TQpVar *vars,TQpResidual *resids,
0080                                   Double_t alpha,Double_t sigma,Int_t i,Double_t mu,
0081                                   Int_t status_code,Int_t level) override;
0082 
0083    TMehrotraSolver &operator=(const TMehrotraSolver &source);
0084 
0085    ClassDefOverride(TMehrotraSolver,1)                 // Mehrotra Qp Solver class
0086 };
0087 #endif