Ipopt Documentation  
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 Index* airn,
46  const Index* ajcn,
47  const Number* a,
48  Number* scaling_factors
49  );
50 
51 private:
60 
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
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...
IpoptCalculatedQuantities & IpCq() const
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.
virtual bool ComputeSymTScalingFactors(Index n, Index nnz, const Index *airn, const Index *ajcn, const Number *a, Number *scaling_factors)
Method for computing the symmetric scaling factors, given the symmetric matrix in triplet (MA27) form...
ipindex Index
Type of all indices of vectors, matrices etc.
Definition: IpTypes.hpp:20
This file contains a base class for all exceptions and a set of macros to help with exceptions...
This class stores a list of user set options.
ipnumber Number
Type of all numbers.
Definition: IpTypes.hpp:17
#define DBG_ASSERT(test)
Definition: IpDebug.hpp:27
Class for all Chen-Goldfarb penalty method specific calculated quantities.
Definition: IpInexactCq.hpp:20