Ipopt Documentation  
 
Loading...
Searching...
No Matches
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"
13#include "IpInexactCq.hpp"
14
15namespace Ipopt
16{
17
23{
24public:
29
31 { }
33
34 virtual bool InitializeImpl(
35 const OptionsList& options,
36 const std::string& prefix
37 );
38
43 Index n,
44 Index nnz,
45 const Index* airn,
46 const Index* ajcn,
47 const Number* a,
48 Number* scaling_factors
49 );
50
51private:
61
64 );
65
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
#define DBG_ASSERT(test)
Definition IpDebug.hpp:27
IpoptCalculatedQuantities & IpCq() const
Class for all Chen-Goldfarb penalty method specific calculated quantities.
Class for the method for computing scaling factors for symmetric matrices in triplet format,...
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.
InexactCq & InexCq()
Method to easily access Inexact calculated quantities.
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...
InexactTSymScalingMethod(const InexactTSymScalingMethod &)
Copy Constructor.
void operator=(const InexactTSymScalingMethod &)
Overloaded Assignment Operator.
This class stores a list of user set options.
Base class for the method for computing scaling factors for symmetric matrices in triplet format.
This file contains a base class for all exceptions and a set of macros to help with exceptions.
ipindex Index
Type of all indices of vectors, matrices etc.
Definition IpTypes.hpp:20
ipnumber Number
Type of all numbers.
Definition IpTypes.hpp:17