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 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
IpUtils.hpp
Ipopt::InexactTSymScalingMethod
Class for the method for computing scaling factors for symmetric matrices in triplet format,...
Definition: IpInexactTSymScalingMethod.hpp:22
Ipopt::AlgorithmStrategyObject::IpCq
IpoptCalculatedQuantities & IpCq() const
Definition: IpAlgStrategy.hpp:150
IpInexactCq.hpp
IpTSymScalingMethod.hpp
Ipopt
This file contains a base class for all exceptions and a set of macros to help with exceptions.
Definition: IpInexactAlgBuilder.hpp:13
Ipopt::InexactTSymScalingMethod::operator=
void operator=(const InexactTSymScalingMethod &)
Overloaded Assignment Operator.
Ipopt::InexactTSymScalingMethod::ComputeSymTScalingFactors
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...
Ipopt::InexactTSymScalingMethod::InexCq
InexactCq & InexCq()
Method to easily access Inexact calculated quantities.
Definition: IpInexactTSymScalingMethod.hpp:72
Ipopt::Index
int Index
Type of all indices of vectors, matrices etc.
Definition: IpTypes.hpp:17
ipfint
FORTRAN_INTEGER_TYPE ipfint
Definition: IpTypes.hpp:24
Ipopt::InexactTSymScalingMethod::InitializeImpl
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.
Ipopt::IpoptCalculatedQuantities::AdditionalCq
IpoptAdditionalCq & AdditionalCq()
Definition: IpIpoptCalculatedQuantities.hpp:574
Ipopt::InexactTSymScalingMethod::~InexactTSymScalingMethod
virtual ~InexactTSymScalingMethod()
Definition: IpInexactTSymScalingMethod.hpp:30
Ipopt::TSymScalingMethod
Base class for the method for computing scaling factors for symmetric matrices in triplet format.
Definition: IpTSymScalingMethod.hpp:21
DBG_ASSERT
#define DBG_ASSERT(test)
Definition: IpDebug.hpp:28
Ipopt::OptionsList
This class stores a list of user set options.
Definition: IpOptionsList.hpp:32
Ipopt::InexactTSymScalingMethod::InexactTSymScalingMethod
InexactTSymScalingMethod()
Definition: IpInexactTSymScalingMethod.hpp:27
Ipopt::InexactCq
Class for all Chen-Goldfarb penalty method specific calculated quantities.
Definition: IpInexactCq.hpp:20