Loading [MathJax]/extensions/tex2jax.js
ROOT
6.08/07
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace Members
+
All
2
3
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
2
3
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
v
x
+
Enumerations
a
d
e
f
g
h
m
p
t
v
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
u
v
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
v
w
x
y
z
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
math
quadp
src
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
// 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
}
nx
const int nx
Definition:
kalman.C:16
TQpProbBase
Definition:
TQpProbBase.h:98
Int_t
int Int_t
Definition:
RtypesCore.h:41
TQpProbBase::fNx
Int_t fNx
Definition:
TQpProbBase.h:102
TQpProbBase::fMz
Int_t fMz
Definition:
TQpProbBase.h:104
TObject::operator=
TObject & operator=(const TObject &rhs)
TObject assignment operator.
Definition:
TObject.cxx:103
TQpProbBase::fMy
Int_t fMy
Definition:
TQpProbBase.h:103
ClassImp
#define ClassImp(name)
Definition:
Rtypes.h:279
TQpProbBase.h
TQpProbBase::TQpProbBase
TQpProbBase()
Default constructor.
Definition:
TQpProbBase.cxx:63
TObject
Mother of all ROOT objects.
Definition:
TObject.h:37
TQpProbBase::operator=
TQpProbBase & operator=(const TQpProbBase &source)
Assignment operator.
Definition:
TQpProbBase.cxx:94