Ipopt  3.11.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
IpAugRestoSystemSolver.hpp
Go to the documentation of this file.
1 // Copyright (C) 2004, 2006 International Business Machines and others.
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // $Id: IpAugRestoSystemSolver.hpp 1861 2010-12-21 21:34:47Z andreasw $
6 //
7 // Authors: Carl Laird, Andreas Waechter IBM 2004-08-13
8 
9 #ifndef __IP_AUGRESTOSYSTEMSOLVER_HPP__
10 #define __IP_AUGRESTOSYSTEMSOLVER_HPP__
11 
12 #include "IpAugSystemSolver.hpp"
13 
14 namespace Ipopt
15 {
16 
24  {
25  public:
34  AugRestoSystemSolver(AugSystemSolver& orig_aug_solver,
35  bool skip_orig_aug_solver_init=true);
36 
38  virtual ~AugRestoSystemSolver();
40 
42  bool InitializeImpl(const OptionsList& options,
43  const std::string& prefix);
44 
49  virtual ESymSolverStatus Solve(
50  const SymMatrix* W,
51  double W_factor,
52  const Vector* D_x,
53  double delta_x,
54  const Vector* D_s,
55  double delta_s,
56  const Matrix* J_c,
57  const Vector* D_c,
58  double delta_c,
59  const Matrix* J_d,
60  const Vector* D_d,
61  double delta_d,
62  const Vector& rhs_x,
63  const Vector& rhs_s,
64  const Vector& rhs_c,
65  const Vector& rhs_d,
66  Vector& sol_x,
67  Vector& sol_s,
68  Vector& sol_c,
69  Vector& sol_d,
70  bool check_NegEVals,
71  Index numberOfNegEVals);
72 
76  virtual Index NumberOfNegEVals() const
77  {
78  return orig_aug_solver_->NumberOfNegEVals();
79  }
80 
84  virtual bool ProvidesInertia() const
85  {
86  return orig_aug_solver_->ProvidesInertia();
87  }
88 
95  virtual bool IncreaseQuality()
96  {
97  return orig_aug_solver_->IncreaseQuality();
98  }
99 
100  private:
111 
114 
116  void operator=(const AugRestoSystemSolver&);
118 
131 
135  const SmartPtr<const Vector>& sigma_tilde_n_c_inv,
136  const SmartPtr<const Vector>& sigma_tilde_p_c_inv,
137  const Vector* D_c,
138  const Vector& any_vec_in_c);
139 
141  const Matrix& Pd_L,
142  const SmartPtr<const Vector>& sigma_tilde_n_d_inv,
143  const Matrix& neg_Pd_U,
144  const SmartPtr<const Vector>& sigma_tilde_p_d_inv,
145  const Vector* D_d,
146  const Vector& any_vec_in_d);
147 
150  const SmartPtr<const Vector>& sigma_tilde_n_c,
151  Number delta_x,
152  const Vector& any_vec_in_n_c);
153 
155  const SmartPtr<const Vector>& sigma_tilde_p_c,
156  Number delta_x,
157  const Vector& any_vec_in_p_c);
158 
160  const SmartPtr<const Vector>& sigma_tilde_n_d,
161  Number delta_x,
162  const Vector& any_vec_in_n_d);
163 
165  const SmartPtr<const Vector>& sigma_tilde_p_d,
166  Number delta_x,
167  const Vector& any_vec_in_p_d);
168 
170  const SmartPtr<const Vector>& CD_x0,
171  Number factor,
172  const Vector& wr_d);
173 
175  const Vector& rhs_c,
176  const SmartPtr<const Vector>& sigma_tilde_n_c_inv,
177  const Vector& rhs_n_c,
178  const SmartPtr<const Vector>& sigma_tilde_p_c_inv,
179  const Vector& rhs_p_c);
180 
182  const Vector& rhs_d,
183  const SmartPtr<const Vector>& sigma_tilde_n_d_inv,
184  const Vector& rhs_n_d,
185  const Matrix& pd_L,
186  const SmartPtr<const Vector>& sigma_tilde_p_d_inv,
187  const Vector& rhs_p_d,
188  const Matrix& pd_U);
190 
193  };
194 
195 } // namespace Ipopt
196 
197 #endif