00001 // @(#)root/quadp:$Id: TQpProbBase.cxx 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 #include "TQpProbBase.h" 00044 00045 ////////////////////////////////////////////////////////////////////////// 00046 // // 00047 // TQpProbBase // 00048 // // 00049 // default general problem formulation: // 00050 // // 00051 // minimize c' x + ( 1/2 ) x' * Q x ; // 00052 // subject to A x = b ; // 00053 // clo <= C x <= cup ; // 00054 // xlo <= x <= xup ; // 00055 // // 00056 ////////////////////////////////////////////////////////////////////////// 00057 00058 ClassImp(TQpProbBase) 00059 00060 //______________________________________________________________________________ 00061 TQpProbBase::TQpProbBase() 00062 { 00063 // Default constructor 00064 00065 fNx = 0; 00066 fMy = 0; 00067 fMz = 0; 00068 } 00069 00070 00071 //______________________________________________________________________________ 00072 TQpProbBase::TQpProbBase(Int_t nx,Int_t my,Int_t mz) 00073 { 00074 // Constructor 00075 00076 fNx = nx; 00077 fMy = my; 00078 fMz = mz; 00079 } 00080 00081 00082 //______________________________________________________________________________ 00083 TQpProbBase::TQpProbBase(const TQpProbBase &another) : TObject(another) 00084 { 00085 // Copy constructor 00086 00087 *this = another; 00088 } 00089 00090 00091 //______________________________________________________________________________ 00092 TQpProbBase &TQpProbBase::operator=(const TQpProbBase &source) 00093 { 00094 // Assignment operator 00095 00096 if (this != &source) { 00097 TObject::operator=(source); 00098 fNx = source.fNx; 00099 fMy = source.fMy; 00100 fMz = source.fMz; 00101 } 00102 return *this; 00103 }