ROOT
6.07/09
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
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:44
TQpProbBase::operator=
TQpProbBase & operator=(const TQpProbBase &source)
Assignment operator.
Definition:
TQpProbBase.cxx:94