Ipopt  3.12.12
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
IpInexactTSymScalingMethod.hpp
Go to the documentation of this file.
1 // Copyright (C) 2009 International Business Machines and others.
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // $Id: IpInexactTSymScalingMethod.hpp 2206 2013-04-13 15:29:15Z stefan $
6 //
7 // Authors: Andreas Waechter, Frank E. Curtis IBM 2009-06-12
8 // (based on IpMc19TSymScalingMethod.hpp rev 699)
9 
10 #ifndef __IPINEXACTTSYMSCALINGMETHOD_HPP__
11 #define __IPINEXACTTSYMSCALINGMETHOD_HPP__
12 
13 #include "IpUtils.hpp"
14 #include "IpTSymScalingMethod.hpp"
15 #include "IpInexactCq.hpp"
16 
17 namespace Ipopt
18 {
19 
25  {
26  public:
30  {}
31 
33  {}
35 
37  virtual bool InitializeImpl(const OptionsList& options,
38  const std::string& prefix);
39 
42  virtual bool ComputeSymTScalingFactors(Index n,
43  Index nnz,
44  const ipfint* airn,
45  const ipfint* ajcn,
46  const double* a,
47  double* scaling_factors);
48  private:
57 
60 
63  {
64  InexactCq& inexact_cq =
65  static_cast<InexactCq&>(IpCq().AdditionalCq());
66  DBG_ASSERT(dynamic_cast<InexactCq*>(&IpCq().AdditionalCq()));
67  return inexact_cq;
68  }
69 
70  };
71 
72 
73 } // namespace Ipopt
74 
75 #endif
FORTRAN_INTEGER_TYPE ipfint
Definition: IpTypes.hpp:26
virtual bool InitializeImpl(const OptionsList &options, const std::string &prefix)
overloaded from AlgorithmStrategyObject
Base class for the method for computing scaling factors for symmetric matrices in triplet format...
InexactCq & InexCq()
Method to easily access Inexact calculated quantities.
Class for the method for computing scaling factors for symmetric matrices in triplet format...
void operator=(const InexactTSymScalingMethod &)
Overloaded Equals Operator.
This class stores a list of user set options.
int Index
Type of all indices of vectors, matrices etc.
Definition: IpTypes.hpp:19
#define DBG_ASSERT(test)
Definition: IpDebug.hpp:38
Class for all Chen-Goldfarb penalty method specific calculated quantities.
Definition: IpInexactCq.hpp:22
virtual bool ComputeSymTScalingFactors(Index n, Index nnz, const ipfint *airn, const ipfint *ajcn, const double *a, double *scaling_factors)
Method for computing the symmetric scaling factors, given the symmtric matrix in triplet (MA27) forma...
IpoptCalculatedQuantities & IpCq() const