Ipopt  3.11.8
 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