Ipopt Documentation  
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 // Authors: Andreas Waechter, Frank E. Curtis IBM 2009-06-12
6 // (based on IpMc19TSymScalingMethod.hpp rev 699)
7 
8 #ifndef __IPINEXACTTSYMSCALINGMETHOD_HPP__
9 #define __IPINEXACTTSYMSCALINGMETHOD_HPP__
10 
11 #include "IpUtils.hpp"
12 #include "IpTSymScalingMethod.hpp"
13 #include "IpInexactCq.hpp"
14 
15 namespace Ipopt
16 {
17 
23 {
24 public:
28  { }
29 
31  { }
33 
34  virtual bool InitializeImpl(
35  const OptionsList& options,
36  const std::string& prefix
37  );
38 
42  virtual bool ComputeSymTScalingFactors(
43  Index n,
44  Index nnz,
45  const ipfint* airn,
46  const ipfint* ajcn,
47  const double* a,
48  double* scaling_factors
49  );
50 
51 private:
64  );
65 
67  void operator=(
69  );
70 
73  {
74  InexactCq& inexact_cq = static_cast<InexactCq&>(IpCq().AdditionalCq());
75  DBG_ASSERT(dynamic_cast<InexactCq*>(&IpCq().AdditionalCq()));
76  return inexact_cq;
77  }
78 
79 };
80 
81 } // namespace Ipopt
82 
83 #endif
FORTRAN_INTEGER_TYPE ipfint
Definition: IpTypes.hpp:24
virtual bool InitializeImpl(const OptionsList &options, const std::string &prefix)
Implementation of the initialization method that has to be overloaded by for each derived class...
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 Assignment Operator.
This class stores a list of user set options.
int Index
Type of all indices of vectors, matrices etc.
Definition: IpTypes.hpp:17
#define DBG_ASSERT(test)
Definition: IpDebug.hpp:28
Class for all Chen-Goldfarb penalty method specific calculated quantities.
Definition: IpInexactCq.hpp:20
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 symmetric matrix in triplet (MA27) form...
IpoptCalculatedQuantities & IpCq() const