Solver for the augmented system with LowRankUpdateSymMatrix Hessian matrices. More...
#include <IpLowRankSSAugSystemSolver.hpp>
Private Member Functions | |
Default Compiler Generated Methods | |
(Hidden to avoid implicit creation/calling). These methods are not implemented and we do not want the compiler to implement them for us, so we declare them private and do not define them. This ensures that they will not be implicitly created/called. | |
LowRankSSAugSystemSolver () | |
Default constructor. | |
LowRankSSAugSystemSolver (const LowRankSSAugSystemSolver &) | |
Copy Constructor. | |
void | operator= (const LowRankSSAugSystemSolver &) |
Internal functions | |
ESymSolverStatus | UpdateExtendedData (const SymMatrix *W, Number W_factor, const Vector *D_x, Number delta_x, const Vector *D_s, Number delta_s, const Matrix &J_c, const Vector *D_c, Number delta_c, const Matrix &J_d, const Vector *D_d, Number delta_d, const Vector &proto_rhs_x, const Vector &proto_rhs_s, const Vector &proto_rhs_c, const Vector &proto_rhs_d) |
Method for updating the factorization, including J1_, J2_, Vtilde1_, Utilde2, Wdiag_, compound_sol_vecspace_. | |
bool | AugmentedSystemRequiresChange (const SymMatrix *W, Number W_factor, const Vector *D_x, Number delta_x, const Vector *D_s, Number delta_s, const Matrix &J_c, const Vector *D_c, Number delta_c, const Matrix &J_d, const Vector *D_d, Number delta_d) |
Method that compares the tags of the data for the matrix with those from the previous call. | |
Private Attributes | |
SmartPtr< AugSystemSolver > | aug_system_solver_ |
The augmented system solver object that should be used for the factorization of the augmented system without the low-rank update. | |
Index | max_rank_ |
Maximal rank of low rank Hessian update. | |
bool | first_call_ |
Flag indicating if this is the first call. | |
Index | num_neg_evals_ |
Stores the number of negative eigenvalues detected during most recent factorization. | |
Tags and values to track in order to decide whether the | |
matrix has to be updated compared to the most recent call of the Set method. | |
TaggedObject::Tag | w_tag_ |
Tag for W matrix. | |
Number | w_factor_ |
Most recent value of W_factor. | |
TaggedObject::Tag | d_x_tag_ |
Tag for D_x vector, representing the diagonal matrix D_x. | |
Number | delta_x_ |
Most recent value of delta_x from Set method. | |
TaggedObject::Tag | d_s_tag_ |
Tag for D_s vector, representing the diagonal matrix D_s. | |
Number | delta_s_ |
Most recent value of delta_s from Set method. | |
TaggedObject::Tag | j_c_tag_ |
Tag for J_c matrix. | |
TaggedObject::Tag | d_c_tag_ |
Tag for D_c vector, representing the diagonal matrix D_c. | |
Number | delta_c_ |
Most recent value of delta_c from Set method. | |
TaggedObject::Tag | j_d_tag_ |
Tag for J_d matrix. | |
TaggedObject::Tag | d_d_tag_ |
Tag for D_d vector, representing the diagonal matrix D_d. | |
Number | delta_d_ |
Most recent value of delta_d from Set method. | |
Information to be stored in order to resolve for the | |
same matrix with a different right hand side. | |
SmartPtr< DiagMatrix > | Wdiag_ |
Hessian Matrix passed to the augmented system solver solving the matrix without the low-rank update. | |
SmartPtr< ExpandedMultiVectorMatrix > | expanded_vu_ |
Artificial rows for Jac_c part for low rank data. | |
SmartPtr< CompoundMatrix > | J_c_ext_ |
Extended Jac_c to include expanded_vu_. | |
SmartPtr< CompoundVector > | D_c_ext_ |
Extended D_c diagonal. | |
SmartPtr< CompoundVectorSpace > | y_c_ext_space_ |
Extended vector space for y_c. | |
Index | negEvalsCorrection_ |
Number of components in V, so that it can be used to correct the inertia. | |
Additional Inherited Members | |
Protected Member Functions inherited from Ipopt::AlgorithmStrategyObject | |
const Journalist & | Jnlst () const |
IpoptNLP & | IpNLP () const |
IpoptData & | IpData () const |
IpoptCalculatedQuantities & | IpCq () const |
bool | HaveIpData () const |
Solver for the augmented system with LowRankUpdateSymMatrix Hessian matrices.
This version works with only one backsolve (so it is better for iterative linear solvers), by augmenting the regular augmented system.
Definition at line 27 of file IpLowRankSSAugSystemSolver.hpp.
Ipopt::LowRankSSAugSystemSolver::LowRankSSAugSystemSolver | ( | AugSystemSolver & | aug_system_solver, |
Index | max_rank | ||
) |
Constructor using an existing augmented system solver.
aug_system_solver | augmented system solver to copy |
max_rank | maximal rank that can appear |
|
virtual |
Destructor.
|
private |
Default constructor.
|
private |
Copy Constructor.
|
virtual |
overloaded from AlgorithmStrategyObject
Implements Ipopt::AugSystemSolver.
|
virtual |
Set up the augmented system and solve it for a given right hand side.
Reimplemented from Ipopt::AugSystemSolver.
Number of negative eigenvalues detected during last solve.
This must not be called if the linear solver does not compute this quantities (
Implements Ipopt::AugSystemSolver.
Query whether inertia is computed by linear solver.
Implements Ipopt::AugSystemSolver.
Request to increase quality of solution for next solve.
Ask underlying linear solver to increase quality of solution for the next solve (e.g. increase pivot tolerance).
Implements Ipopt::AugSystemSolver.
|
private |
|
private |
Method for updating the factorization, including J1_, J2_, Vtilde1_, Utilde2, Wdiag_, compound_sol_vecspace_.
|
private |
Method that compares the tags of the data for the matrix with those from the previous call.
|
private |
The augmented system solver object that should be used for the factorization of the augmented system without the low-rank update.
Definition at line 126 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Maximal rank of low rank Hessian update.
Definition at line 129 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Tag for W matrix.
If W has been given to Set as NULL, then this tag is set to 0.
Definition at line 140 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Most recent value of W_factor.
Definition at line 143 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Tag for D_x vector, representing the diagonal matrix D_x.
If D_x has been given to Set as NULL, then this tag is set to 0.
Definition at line 149 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Most recent value of delta_x from Set method.
Definition at line 152 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Tag for D_s vector, representing the diagonal matrix D_s.
If D_s has been given to Set as NULL, then this tag is set to 0.
Definition at line 157 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Most recent value of delta_s from Set method.
Definition at line 160 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Tag for J_c matrix.
If J_c has been given to Set as NULL, then this tag is set to 0.
Definition at line 166 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Tag for D_c vector, representing the diagonal matrix D_c.
If D_c has been given to Set as NULL, then this tag is set to 0.
Definition at line 172 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Most recent value of delta_c from Set method.
Definition at line 175 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Tag for J_d matrix.
If J_d has been given to Set as NULL, then this tag is set to 0.
Definition at line 181 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Tag for D_d vector, representing the diagonal matrix D_d.
If D_d has been given to Set as NULL, then this tag is set to 0.
Definition at line 187 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Most recent value of delta_d from Set method.
Definition at line 190 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Flag indicating if this is the first call.
Definition at line 194 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Hessian Matrix passed to the augmented system solver solving the matrix without the low-rank update.
Definition at line 202 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Artificial rows for Jac_c part for low rank data.
Definition at line 205 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Extended Jac_c to include expanded_vu_.
Definition at line 208 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Extended D_c diagonal.
Definition at line 211 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Extended vector space for y_c.
Definition at line 214 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Number of components in V, so that it can be used to correct the inertia.
Definition at line 218 of file IpLowRankSSAugSystemSolver.hpp.
|
private |
Stores the number of negative eigenvalues detected during most recent factorization.
This is what is returned by NumberOfNegEVals() of this class. It usually is the number of negative eigenvalues returned from the aug_system_solver solve, but if a Cholesky factorization could not be performed, the returned value is one more than this what the aug_system_solver returned.
Definition at line 231 of file IpLowRankSSAugSystemSolver.hpp.