ROOT logo
// @(#)root/quadp:$Id: TMehrotraSolver.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Eddy Offermann   May 2004

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

/*************************************************************************
 * Parts of this file are copied from the OOQP distribution and          *
 * are subject to the following license:                                 *
 *                                                                       *
 * COPYRIGHT 2001 UNIVERSITY OF CHICAGO                                  *
 *                                                                       *
 * The copyright holder hereby grants you royalty-free rights to use,    *
 * reproduce, prepare derivative works, and to redistribute this software*
 * to others, provided that any changes are clearly documented. This     *
 * software was authored by:                                             *
 *                                                                       *
 *   E. MICHAEL GERTZ      gertz@mcs.anl.gov                             *
 *   Mathematics and Computer Science Division                           *
 *   Argonne National Laboratory                                         *
 *   9700 S. Cass Avenue                                                 *
 *   Argonne, IL 60439-4844                                              *
 *                                                                       *
 *   STEPHEN J. WRIGHT     swright@cs.wisc.edu                           *
 *   Computer Sciences Department                                        *
 *   University of Wisconsin                                             *
 *   1210 West Dayton Street                                             *
 *   Madison, WI 53706   FAX: (608)262-9777                              *
 *                                                                       *
 * Any questions or comments may be directed to one of the authors.      *
 *                                                                       *
 * ARGONNE NATIONAL LABORATORY (ANL), WITH FACILITIES IN THE STATES OF   *
 * ILLINOIS AND IDAHO, IS OWNED BY THE UNITED STATES GOVERNMENT, AND     *
 * OPERATED BY THE UNIVERSITY OF CHICAGO UNDER PROVISION OF A CONTRACT   *
 * WITH THE DEPARTMENT OF ENERGY.                                        *
 *************************************************************************/

#ifndef ROOT_TMehrotraSolver
#define ROOT_TMehrotraSolver

#include "TQpSolverBase.h"

///////////////////////////////////////////////////////////////////////////
//                                                                       //
// Derived class of TQpSolverBase implementing the original Mehrotra     //
// predictor-corrector algorithm                                         //
//                                                                       //
///////////////////////////////////////////////////////////////////////////

class TMehrotraSolver : public TQpSolverBase
{
protected:

   Int_t        fPrintlevel;                   // parameter in range [0,100] determines verbosity. (Higher value
                                               //  => more verbose.)
   Double_t     fTsig;                         // exponent in Mehrotra's centering parameter, which is usually
                                               // chosen to me (muaff/mu)^tsig, where muaff is the predicted
                                               // complementarity gap obtained from an affine-scaling step, while
                                               // mu is the current complementarity gap

   TQpVar      *fStep;                         // storage for step vectors

   TQpProbBase *fFactory;

public:

   TMehrotraSolver();
   TMehrotraSolver(TQpProbBase *of,TQpDataBase *prob,Int_t verbose=0);
   TMehrotraSolver(const TMehrotraSolver &another);

   virtual ~TMehrotraSolver();

   virtual Int_t Solve           (TQpDataBase *prob,TQpVar *iterate,TQpResidual *resid);
   virtual void  DefMonitor      (TQpDataBase *data,TQpVar *vars,TQpResidual *resids,
                                  Double_t alpha,Double_t sigma,Int_t i,Double_t mu,
                                  Int_t status_code,Int_t level);

   TMehrotraSolver &operator=(const TMehrotraSolver &source);

   ClassDef(TMehrotraSolver,1)                 // Mehrotra Qp Solver class
};
#endif
 TMehrotraSolver.h:1
 TMehrotraSolver.h:2
 TMehrotraSolver.h:3
 TMehrotraSolver.h:4
 TMehrotraSolver.h:5
 TMehrotraSolver.h:6
 TMehrotraSolver.h:7
 TMehrotraSolver.h:8
 TMehrotraSolver.h:9
 TMehrotraSolver.h:10
 TMehrotraSolver.h:11
 TMehrotraSolver.h:12
 TMehrotraSolver.h:13
 TMehrotraSolver.h:14
 TMehrotraSolver.h:15
 TMehrotraSolver.h:16
 TMehrotraSolver.h:17
 TMehrotraSolver.h:18
 TMehrotraSolver.h:19
 TMehrotraSolver.h:20
 TMehrotraSolver.h:21
 TMehrotraSolver.h:22
 TMehrotraSolver.h:23
 TMehrotraSolver.h:24
 TMehrotraSolver.h:25
 TMehrotraSolver.h:26
 TMehrotraSolver.h:27
 TMehrotraSolver.h:28
 TMehrotraSolver.h:29
 TMehrotraSolver.h:30
 TMehrotraSolver.h:31
 TMehrotraSolver.h:32
 TMehrotraSolver.h:33
 TMehrotraSolver.h:34
 TMehrotraSolver.h:35
 TMehrotraSolver.h:36
 TMehrotraSolver.h:37
 TMehrotraSolver.h:38
 TMehrotraSolver.h:39
 TMehrotraSolver.h:40
 TMehrotraSolver.h:41
 TMehrotraSolver.h:42
 TMehrotraSolver.h:43
 TMehrotraSolver.h:44
 TMehrotraSolver.h:45
 TMehrotraSolver.h:46
 TMehrotraSolver.h:47
 TMehrotraSolver.h:48
 TMehrotraSolver.h:49
 TMehrotraSolver.h:50
 TMehrotraSolver.h:51
 TMehrotraSolver.h:52
 TMehrotraSolver.h:53
 TMehrotraSolver.h:54
 TMehrotraSolver.h:55
 TMehrotraSolver.h:56
 TMehrotraSolver.h:57
 TMehrotraSolver.h:58
 TMehrotraSolver.h:59
 TMehrotraSolver.h:60
 TMehrotraSolver.h:61
 TMehrotraSolver.h:62
 TMehrotraSolver.h:63
 TMehrotraSolver.h:64
 TMehrotraSolver.h:65
 TMehrotraSolver.h:66
 TMehrotraSolver.h:67
 TMehrotraSolver.h:68
 TMehrotraSolver.h:69
 TMehrotraSolver.h:70
 TMehrotraSolver.h:71
 TMehrotraSolver.h:72
 TMehrotraSolver.h:73
 TMehrotraSolver.h:74
 TMehrotraSolver.h:75
 TMehrotraSolver.h:76
 TMehrotraSolver.h:77
 TMehrotraSolver.h:78
 TMehrotraSolver.h:79
 TMehrotraSolver.h:80
 TMehrotraSolver.h:81
 TMehrotraSolver.h:82
 TMehrotraSolver.h:83
 TMehrotraSolver.h:84
 TMehrotraSolver.h:85
 TMehrotraSolver.h:86
 TMehrotraSolver.h:87