ROOT
master
Reference Guide
Loading...
Searching...
No Matches
TQpProbBase.cxx
Go to the documentation of this file.
1
// @(#)root/quadp:$Id$
2
// Author: Eddy Offermann May 2004
3
4
/*************************************************************************
5
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
/*************************************************************************
13
* Parts of this file are copied from the OOQP distribution and *
14
* are subject to the following license: *
15
* *
16
* COPYRIGHT 2001 UNIVERSITY OF CHICAGO *
17
* *
18
* The copyright holder hereby grants you royalty-free rights to use, *
19
* reproduce, prepare derivative works, and to redistribute this software*
20
* to others, provided that any changes are clearly documented. This *
21
* software was authored by: *
22
* *
23
* E. MICHAEL GERTZ gertz@mcs.anl.gov *
24
* Mathematics and Computer Science Division *
25
* Argonne National Laboratory *
26
* 9700 S. Cass Avenue *
27
* Argonne, IL 60439-4844 *
28
* *
29
* STEPHEN J. WRIGHT swright@cs.wisc.edu *
30
* Computer Sciences Department *
31
* University of Wisconsin *
32
* 1210 West Dayton Street *
33
* Madison, WI 53706 FAX: (608)262-9777 *
34
* *
35
* Any questions or comments may be directed to one of the authors. *
36
* *
37
* ARGONNE NATIONAL LABORATORY (ANL), WITH FACILITIES IN THE STATES OF *
38
* ILLINOIS AND IDAHO, IS OWNED BY THE UNITED STATES GOVERNMENT, AND *
39
* OPERATED BY THE UNIVERSITY OF CHICAGO UNDER PROVISION OF A CONTRACT *
40
* WITH THE DEPARTMENT OF ENERGY. *
41
*************************************************************************/
42
43
#include "
TQpProbBase.h
"
44
45
////////////////////////////////////////////////////////////////////////////////
46
///
47
/// \class TQpProbBase
48
///
49
/// default general problem formulation:
50
///
51
/// minimize c' x + ( 1/2 ) x' * Q x ;
52
/// subject to A x = b ;
53
/// clo <= C x <= cup ;
54
/// xlo <= x <= xup ;
55
///
56
////////////////////////////////////////////////////////////////////////////////
57
58
ClassImp
(
TQpProbBase
);
59
60
////////////////////////////////////////////////////////////////////////////////
61
/// Default constructor
62
63
TQpProbBase::TQpProbBase
()
64
{
65
fNx
= 0;
66
fMy
= 0;
67
fMz
= 0;
68
}
69
70
71
////////////////////////////////////////////////////////////////////////////////
72
/// Constructor
73
74
TQpProbBase::TQpProbBase
(
Int_t
nx,
Int_t
my,
Int_t
mz)
75
{
76
fNx
= nx;
77
fMy
= my;
78
fMz
= mz;
79
}
80
81
82
////////////////////////////////////////////////////////////////////////////////
83
/// Copy constructor
84
85
TQpProbBase::TQpProbBase
(
const
TQpProbBase
&another) :
TObject
(another)
86
{
87
*
this
= another;
88
}
89
90
91
////////////////////////////////////////////////////////////////////////////////
92
/// Assignment operator
93
94
TQpProbBase
&
TQpProbBase::operator=
(
const
TQpProbBase
&source)
95
{
96
if
(
this
!= &source) {
97
TObject::operator=
(source);
98
fNx
= source.
fNx
;
99
fMy
= source.
fMy
;
100
fMz
= source.
fMz
;
101
}
102
return
*
this
;
103
}
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:382
TQpProbBase.h
TObject
Mother of all ROOT objects.
Definition
TObject.h:41
TObject::operator=
TObject & operator=(const TObject &rhs)
TObject assignment operator.
Definition
TObject.h:296
TQpProbBase
default general problem formulation:
Definition
TQpProbBase.h:89
TQpProbBase::fMz
Int_t fMz
Definition
TQpProbBase.h:94
TQpProbBase::fNx
Int_t fNx
Definition
TQpProbBase.h:92
TQpProbBase::fMy
Int_t fMy
Definition
TQpProbBase.h:93
TQpProbBase::TQpProbBase
TQpProbBase()
Default constructor.
Definition
TQpProbBase.cxx:63
TQpProbBase::operator=
TQpProbBase & operator=(const TQpProbBase &source)
Assignment operator.
Definition
TQpProbBase.cxx:94
int
math
quadp
src
TQpProbBase.cxx
ROOT master - Reference Guide Generated on Thu Dec 19 2024 09:46:37 (GVA Time) using Doxygen 1.9.8