/usr/include/coin/IpTimingStatistics.hpp is in coinor-libipopt-dev 3.11.4-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | // Copyright (C) 2005, 2008 International Business Machines and others.
// All Rights Reserved.
// This code is published under the Eclipse Public License.
//
// $Id: IpTimingStatistics.hpp 2005 2011-06-06 12:55:16Z stefan $
//
// Authors: Andreas Waechter IBM 2005-09-19
#ifndef __IPTIMINGSTATISTICS_HPP__
#define __IPTIMINGSTATISTICS_HPP__
#include "IpReferenced.hpp"
#include "IpJournalist.hpp"
#include "IpTimedTask.hpp"
namespace Ipopt
{
/** This class collects all timing statistics for Ipopt.
*/
class TimingStatistics : public ReferencedObject
{
public:
/**@name Constructors/Destructors */
//@{
/** Default constructor. */
TimingStatistics()
{}
/** Default destructor */
virtual ~TimingStatistics()
{}
//@}
/** Method for resetting all times. */
void ResetTimes();
/** Method for printing all timing information */
void PrintAllTimingStatistics(Journalist& jnlst,
EJournalLevel level,
EJournalCategory category) const;
/**@name Accessor methods to all timed tasks. */
//@{
TimedTask& OverallAlgorithm()
{
return OverallAlgorithm_;
}
TimedTask& PrintProblemStatistics()
{
return PrintProblemStatistics_;
}
TimedTask& InitializeIterates()
{
return InitializeIterates_;
}
TimedTask& UpdateHessian()
{
return UpdateHessian_;
}
TimedTask& OutputIteration()
{
return OutputIteration_;
}
TimedTask& UpdateBarrierParameter()
{
return UpdateBarrierParameter_;
}
TimedTask& ComputeSearchDirection()
{
return ComputeSearchDirection_;
}
TimedTask& ComputeAcceptableTrialPoint()
{
return ComputeAcceptableTrialPoint_;
}
TimedTask& AcceptTrialPoint()
{
return AcceptTrialPoint_;
}
TimedTask& CheckConvergence()
{
return CheckConvergence_;
}
TimedTask& PDSystemSolverTotal()
{
return PDSystemSolverTotal_;
}
TimedTask& PDSystemSolverSolveOnce()
{
return PDSystemSolverSolveOnce_;
}
TimedTask& ComputeResiduals()
{
return ComputeResiduals_;
}
TimedTask& StdAugSystemSolverMultiSolve()
{
return StdAugSystemSolverMultiSolve_;
}
TimedTask& LinearSystemScaling()
{
return LinearSystemScaling_;
}
TimedTask& LinearSystemSymbolicFactorization()
{
return LinearSystemSymbolicFactorization_;
}
TimedTask& LinearSystemFactorization()
{
return LinearSystemFactorization_;
}
TimedTask& LinearSystemBackSolve()
{
return LinearSystemBackSolve_;
}
TimedTask& LinearSystemStructureConverter()
{
return LinearSystemStructureConverter_;
}
TimedTask& LinearSystemStructureConverterInit()
{
return LinearSystemStructureConverterInit_;
}
TimedTask& QualityFunctionSearch()
{
return QualityFunctionSearch_;
}
TimedTask& TryCorrector()
{
return TryCorrector_;
}
TimedTask& Task1()
{
return Task1_;
}
TimedTask& Task2()
{
return Task2_;
}
TimedTask& Task3()
{
return Task3_;
}
TimedTask& Task4()
{
return Task4_;
}
TimedTask& Task5()
{
return Task5_;
}
TimedTask& Task6()
{
return Task6_;
}
//@}
private:
/**@name Default Compiler Generated Methods
* (Hidden to avoid implicit creation/calling).
* These methods are not implemented and
* we do not want the compiler to implement
* them for us, so we declare them private
* and do not define them. This ensures that
* they will not be implicitly created/called. */
//@{
/** Copy Constructor */
TimingStatistics(const TimingStatistics&);
/** Overloaded Equals Operator */
void operator=(const TimingStatistics&);
//@}
/**@name All timed tasks. */
//@{
TimedTask OverallAlgorithm_;
TimedTask PrintProblemStatistics_;
TimedTask InitializeIterates_;
TimedTask UpdateHessian_;
TimedTask OutputIteration_;
TimedTask UpdateBarrierParameter_;
TimedTask ComputeSearchDirection_;
TimedTask ComputeAcceptableTrialPoint_;
TimedTask AcceptTrialPoint_;
TimedTask CheckConvergence_;
TimedTask PDSystemSolverTotal_;
TimedTask PDSystemSolverSolveOnce_;
TimedTask ComputeResiduals_;
TimedTask StdAugSystemSolverMultiSolve_;
TimedTask LinearSystemScaling_;
TimedTask LinearSystemSymbolicFactorization_;
TimedTask LinearSystemFactorization_;
TimedTask LinearSystemBackSolve_;
TimedTask LinearSystemStructureConverter_;
TimedTask LinearSystemStructureConverterInit_;
TimedTask QualityFunctionSearch_;
TimedTask TryCorrector_;
TimedTask Task1_;
TimedTask Task2_;
TimedTask Task3_;
TimedTask Task4_;
TimedTask Task5_;
TimedTask Task6_;
//@}
};
} // namespace Ipopt
#endif
|