Ipopt 3.12.10

- Main Page
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
IpTimingStatistics.hpp
Go to the documentation of this file.
1 // Copyright (C) 2005, 2008 International Business Machines and others.
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // $Id: IpTimingStatistics.hpp 2005 2011-06-06 12:55:16Z stefan $
6 //
7 // Authors: Andreas Waechter IBM 2005-09-19
8
9 #ifndef __IPTIMINGSTATISTICS_HPP__
10 #define __IPTIMINGSTATISTICS_HPP__
11
12 #include "IpReferenced.hpp"
13 #include "IpJournalist.hpp"
14 #include "IpTimedTask.hpp"
15
16 namespace Ipopt
17 {
20 class TimingStatistics : public ReferencedObject
21 {
22 public:
26 TimingStatistics()
27 {}
28
30 virtual ~TimingStatistics()
31 {}
33
35 void ResetTimes();
36
38 void PrintAllTimingStatistics(Journalist& jnlst,
39 EJournalLevel level,
40 EJournalCategory category) const;
41
44 TimedTask& OverallAlgorithm()
45 {
46 return OverallAlgorithm_;
47 }
48 TimedTask& PrintProblemStatistics()
49 {
50 return PrintProblemStatistics_;
51 }
52 TimedTask& InitializeIterates()
53 {
54 return InitializeIterates_;
55 }
56 TimedTask& UpdateHessian()
57 {
58 return UpdateHessian_;
59 }
60 TimedTask& OutputIteration()
61 {
62 return OutputIteration_;
63 }
64 TimedTask& UpdateBarrierParameter()
65 {
66 return UpdateBarrierParameter_;
67 }
68 TimedTask& ComputeSearchDirection()
69 {
70 return ComputeSearchDirection_;
71 }
72 TimedTask& ComputeAcceptableTrialPoint()
73 {
74 return ComputeAcceptableTrialPoint_;
75 }
76 TimedTask& AcceptTrialPoint()
77 {
78 return AcceptTrialPoint_;
79 }
80 TimedTask& CheckConvergence()
81 {
82 return CheckConvergence_;
83 }
84
85 TimedTask& PDSystemSolverTotal()
86 {
87 return PDSystemSolverTotal_;
88 }
89 TimedTask& PDSystemSolverSolveOnce()
90 {
91 return PDSystemSolverSolveOnce_;
92 }
93 TimedTask& ComputeResiduals()
94 {
95 return ComputeResiduals_;
96 }
97 TimedTask& StdAugSystemSolverMultiSolve()
98 {
99 return StdAugSystemSolverMultiSolve_;
100 }
101 TimedTask& LinearSystemScaling()
102 {
103 return LinearSystemScaling_;
104 }
105 TimedTask& LinearSystemSymbolicFactorization()
106 {
107 return LinearSystemSymbolicFactorization_;
108 }
109 TimedTask& LinearSystemFactorization()
110 {
111 return LinearSystemFactorization_;
112 }
113 TimedTask& LinearSystemBackSolve()
114 {
115 return LinearSystemBackSolve_;
116 }
117 TimedTask& LinearSystemStructureConverter()
118 {
119 return LinearSystemStructureConverter_;
120 }
121 TimedTask& LinearSystemStructureConverterInit()
122 {
123 return LinearSystemStructureConverterInit_;
124 }
125 TimedTask& QualityFunctionSearch()
126 {
127 return QualityFunctionSearch_;
128 }
129 TimedTask& TryCorrector()
130 {
131 return TryCorrector_;
132 }
133
134 TimedTask& Task1()
135 {
136 return Task1_;
137 }
138 TimedTask& Task2()
139 {
140 return Task2_;
141 }
142 TimedTask& Task3()
143 {
144 return Task3_;
145 }
146 TimedTask& Task4()
147 {
148 return Task4_;
149 }
150 TimedTask& Task5()
151 {
152 return Task5_;
153 }
154 TimedTask& Task6()
155 {
156 return Task6_;
157 }
159
160 private:
170 TimingStatistics(const TimingStatistics&);
171
173 void operator=(const TimingStatistics&);
175
178 TimedTask OverallAlgorithm_;
179 TimedTask PrintProblemStatistics_;
180 TimedTask InitializeIterates_;
181 TimedTask UpdateHessian_;
182 TimedTask OutputIteration_;
183 TimedTask UpdateBarrierParameter_;
184 TimedTask ComputeSearchDirection_;
185 TimedTask ComputeAcceptableTrialPoint_;
186 TimedTask AcceptTrialPoint_;
187 TimedTask CheckConvergence_;
188
189 TimedTask PDSystemSolverTotal_;
190 TimedTask PDSystemSolverSolveOnce_;
191 TimedTask ComputeResiduals_;
192 TimedTask StdAugSystemSolverMultiSolve_;
193 TimedTask LinearSystemScaling_;
194 TimedTask LinearSystemSymbolicFactorization_;
195 TimedTask LinearSystemFactorization_;
196 TimedTask LinearSystemBackSolve_;
197 TimedTask LinearSystemStructureConverter_;
198 TimedTask LinearSystemStructureConverterInit_;
199 TimedTask QualityFunctionSearch_;
200 TimedTask TryCorrector_;
201
202 TimedTask Task1_;
203 TimedTask Task2_;
204 TimedTask Task3_;
205 TimedTask Task4_;
206 TimedTask Task5_;
207 TimedTask Task6_;
209 };
210
211 } // namespace Ipopt
212
213 #endif
Ipopt::TimingStatistics::InitializeIterates
TimedTask & InitializeIterates()
Definition: IpTimingStatistics.hpp:52
Ipopt::TimingStatistics::PDSystemSolverTotal_
TimedTask PDSystemSolverTotal_
Definition: IpTimingStatistics.hpp:189
Ipopt::TimingStatistics::operator=
void operator=(const TimingStatistics &)
Overloaded Equals Operator.
Ipopt::TimingStatistics::ComputeSearchDirection_
TimedTask ComputeSearchDirection_
Definition: IpTimingStatistics.hpp:184
Ipopt::TimingStatistics::LinearSystemScaling
TimedTask & LinearSystemScaling()
Definition: IpTimingStatistics.hpp:101
Ipopt::TimingStatistics::Task4
TimedTask & Task4()
Definition: IpTimingStatistics.hpp:146
Ipopt::TimingStatistics::LinearSystemSymbolicFactorization
TimedTask & LinearSystemSymbolicFactorization()
Definition: IpTimingStatistics.hpp:105
Ipopt::TimingStatistics::Task1
TimedTask & Task1()
Definition: IpTimingStatistics.hpp:134
Ipopt::TimingStatistics::InitializeIterates_
TimedTask InitializeIterates_
Definition: IpTimingStatistics.hpp:180
Ipopt::TimingStatistics::Task5
TimedTask & Task5()
Definition: IpTimingStatistics.hpp:150
Ipopt::TimingStatistics::OutputIteration_
TimedTask OutputIteration_
Definition: IpTimingStatistics.hpp:182
Ipopt::TimingStatistics::LinearSystemBackSolve_
TimedTask LinearSystemBackSolve_
Definition: IpTimingStatistics.hpp:196
Ipopt::TimingStatistics::LinearSystemStructureConverterInit_
TimedTask LinearSystemStructureConverterInit_
Definition: IpTimingStatistics.hpp:198
Ipopt::TimedTask
This class is used to collect timing information for a particular task.
Definition: IpTimedTask.hpp:18
Ipopt::TimingStatistics::ResetTimes
void ResetTimes()
Method for resetting all times.
Ipopt::TimingStatistics::Task6_
TimedTask Task6_
Definition: IpTimingStatistics.hpp:207
Ipopt::TimingStatistics::AcceptTrialPoint
TimedTask & AcceptTrialPoint()
Definition: IpTimingStatistics.hpp:76
Ipopt::TimingStatistics::ComputeSearchDirection
TimedTask & ComputeSearchDirection()
Definition: IpTimingStatistics.hpp:68
Ipopt::TimingStatistics::ComputeAcceptableTrialPoint_
TimedTask ComputeAcceptableTrialPoint_
Definition: IpTimingStatistics.hpp:185
Ipopt::TimingStatistics::PDSystemSolverSolveOnce
TimedTask & PDSystemSolverSolveOnce()
Definition: IpTimingStatistics.hpp:89
Ipopt::TimingStatistics::LinearSystemBackSolve
TimedTask & LinearSystemBackSolve()
Definition: IpTimingStatistics.hpp:113
Ipopt::TimingStatistics::QualityFunctionSearch_
TimedTask QualityFunctionSearch_
Definition: IpTimingStatistics.hpp:199
Ipopt::TimingStatistics::OutputIteration
TimedTask & OutputIteration()
Definition: IpTimingStatistics.hpp:60
Ipopt::TimingStatistics::Task2_
TimedTask Task2_
Definition: IpTimingStatistics.hpp:203
Ipopt::TimingStatistics::ComputeAcceptableTrialPoint
TimedTask & ComputeAcceptableTrialPoint()
Definition: IpTimingStatistics.hpp:72
Ipopt::EJournalLevel
EJournalLevel
Print Level Enum.
Definition: IpJournalist.hpp:51
Ipopt::TimingStatistics::CheckConvergence
TimedTask & CheckConvergence()
Definition: IpTimingStatistics.hpp:80
Ipopt::TimingStatistics::PrintAllTimingStatistics
void PrintAllTimingStatistics(Journalist &jnlst, EJournalLevel level, EJournalCategory category) const
Method for printing all timing information.
Ipopt::TimingStatistics::TryCorrector
TimedTask & TryCorrector()
Definition: IpTimingStatistics.hpp:129
Ipopt::TimingStatistics::TryCorrector_
TimedTask TryCorrector_
Definition: IpTimingStatistics.hpp:200
Ipopt::TimingStatistics::Task6
TimedTask & Task6()
Definition: IpTimingStatistics.hpp:154
Ipopt::TimingStatistics::OverallAlgorithm_
TimedTask OverallAlgorithm_
Definition: IpTimingStatistics.hpp:178
Ipopt::TimingStatistics::LinearSystemStructureConverter
TimedTask & LinearSystemStructureConverter()
Definition: IpTimingStatistics.hpp:117
Ipopt::TimingStatistics
This class collects all timing statistics for Ipopt.
Definition: IpTimingStatistics.hpp:20
Ipopt::ReferencedObject
ReferencedObject class.
Definition: IpReferenced.hpp:174
Ipopt::TimingStatistics::StdAugSystemSolverMultiSolve
TimedTask & StdAugSystemSolverMultiSolve()
Definition: IpTimingStatistics.hpp:97
Ipopt::TimingStatistics::PrintProblemStatistics_
TimedTask PrintProblemStatistics_
Definition: IpTimingStatistics.hpp:179
Ipopt::TimingStatistics::LinearSystemStructureConverterInit
TimedTask & LinearSystemStructureConverterInit()
Definition: IpTimingStatistics.hpp:121
Ipopt::TimingStatistics::LinearSystemScaling_
TimedTask LinearSystemScaling_
Definition: IpTimingStatistics.hpp:193
Ipopt::TimingStatistics::Task3_
TimedTask Task3_
Definition: IpTimingStatistics.hpp:204
Ipopt::TimingStatistics::UpdateHessian_
TimedTask UpdateHessian_
Definition: IpTimingStatistics.hpp:181
Ipopt::TimingStatistics::ComputeResiduals
TimedTask & ComputeResiduals()
Definition: IpTimingStatistics.hpp:93
Ipopt::TimingStatistics::UpdateBarrierParameter_
TimedTask UpdateBarrierParameter_
Definition: IpTimingStatistics.hpp:183
Ipopt::TimingStatistics::AcceptTrialPoint_
TimedTask AcceptTrialPoint_
Definition: IpTimingStatistics.hpp:186
Ipopt::TimingStatistics::UpdateHessian
TimedTask & UpdateHessian()
Definition: IpTimingStatistics.hpp:56
IpReferenced.hpp
Ipopt::TimingStatistics::Task3
TimedTask & Task3()
Definition: IpTimingStatistics.hpp:142
Ipopt::TimingStatistics::LinearSystemStructureConverter_
TimedTask LinearSystemStructureConverter_
Definition: IpTimingStatistics.hpp:197
Ipopt::TimingStatistics::PrintProblemStatistics
TimedTask & PrintProblemStatistics()
Definition: IpTimingStatistics.hpp:48
Ipopt::TimingStatistics::PDSystemSolverSolveOnce_
TimedTask PDSystemSolverSolveOnce_
Definition: IpTimingStatistics.hpp:190
Ipopt::TimingStatistics::QualityFunctionSearch
TimedTask & QualityFunctionSearch()
Definition: IpTimingStatistics.hpp:125
IpJournalist.hpp
Ipopt::TimingStatistics::StdAugSystemSolverMultiSolve_
TimedTask StdAugSystemSolverMultiSolve_
Definition: IpTimingStatistics.hpp:192
Ipopt::Journalist
Class responsible for all message output.
Definition: IpJournalist.hpp:134
Ipopt::TimingStatistics::Task5_
TimedTask Task5_
Definition: IpTimingStatistics.hpp:206
Ipopt::TimingStatistics::LinearSystemFactorization_
TimedTask LinearSystemFactorization_
Definition: IpTimingStatistics.hpp:195
Ipopt::TimingStatistics::TimingStatistics
TimingStatistics()
Default constructor.
Definition: IpTimingStatistics.hpp:26
Ipopt::TimingStatistics::PDSystemSolverTotal
TimedTask & PDSystemSolverTotal()
Definition: IpTimingStatistics.hpp:85
Ipopt::TimingStatistics::Task1_
TimedTask Task1_
Definition: IpTimingStatistics.hpp:202
Ipopt::TimingStatistics::UpdateBarrierParameter
TimedTask & UpdateBarrierParameter()
Definition: IpTimingStatistics.hpp:64
IpTimedTask.hpp
Ipopt::TimingStatistics::Task4_
TimedTask Task4_
Definition: IpTimingStatistics.hpp:205
Ipopt::TimingStatistics::LinearSystemFactorization
TimedTask & LinearSystemFactorization()
Definition: IpTimingStatistics.hpp:109
Ipopt::EJournalCategory
EJournalCategory
Category Selection Enum.
Definition: IpJournalist.hpp:70
Ipopt::TimingStatistics::~TimingStatistics
virtual ~TimingStatistics()
Default destructor.
Definition: IpTimingStatistics.hpp:30
Ipopt::TimingStatistics::OverallAlgorithm
TimedTask & OverallAlgorithm()
Definition: IpTimingStatistics.hpp:44
Ipopt::TimingStatistics::ComputeResiduals_
TimedTask ComputeResiduals_
Definition: IpTimingStatistics.hpp:191
Ipopt::TimingStatistics::LinearSystemSymbolicFactorization_
TimedTask LinearSystemSymbolicFactorization_
Definition: IpTimingStatistics.hpp:194
Ipopt::TimingStatistics::Task2
TimedTask & Task2()
Definition: IpTimingStatistics.hpp:138
Ipopt::TimingStatistics::CheckConvergence_
TimedTask CheckConvergence_
Definition: IpTimingStatistics.hpp:187