7#ifndef __IP_STDAUGSYSTEMSOLVER_HPP__
8#define __IP_STDAUGSYSTEMSOLVER_HPP__
41 const std::string& prefix
70 Index numberOfNegEVals
AugSystemSolver()
Default constructor.
This class stores a list of user set options.
Template class for Smart Pointers.
virtual bool ProvidesInertia() const
Query whether inertia is computed by linear solver.
StdAugSystemSolver()
Default constructor.
TaggedObject::Tag augsys_tag_
This is the tag of the matrix storing the augmented system.
SmartPtr< IdentityMatrixSpace > ident_space_ds_
bool warm_start_same_structure_
Flag indicating whether the TNLP with identical structure has already been solved before.
virtual ~StdAugSystemSolver()
Destructor.
virtual ESymSolverStatus MultiSolve(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, std::vector< SmartPtr< const Vector > > &rhs_xV, std::vector< SmartPtr< const Vector > > &rhs_sV, std::vector< SmartPtr< const Vector > > &rhs_cV, std::vector< SmartPtr< const Vector > > &rhs_dV, std::vector< SmartPtr< Vector > > &sol_xV, std::vector< SmartPtr< Vector > > &sol_sV, std::vector< SmartPtr< Vector > > &sol_cV, std::vector< SmartPtr< Vector > > &sol_dV, bool check_NegEVals, Index numberOfNegEVals)
Set up the augmented system and solve it for a set of given right hand side - implementation for GenT...
TaggedObject::Tag d_c_tag_
Tag for D_c vector, representing the diagonal matrix D_c.
SmartPtr< CompoundSymMatrixSpace > augmented_system_space_
Spaces for piecing together the augmented system.
bool InitializeImpl(const OptionsList &options, const std::string &prefix)
overloaded from AlgorithmStrategyObject
TaggedObject::Tag d_s_tag_
Tag for D_s vector, representing the diagonal matrix D_s.
SmartPtr< SymLinearSolver > linsolver_
The linear solver object that is to be used to solve the linear systems.
StdAugSystemSolver(const StdAugSystemSolver &)
Copy Constructor.
Number delta_x_
Most recent value of delta_x from Set method.
SmartPtr< CompoundSymMatrix > augmented_system_
The resulting augmented matrix.
Number w_factor_
Most recent value of W_factor.
Number delta_c_
Most recent value of delta_c from set method.
SmartPtr< SumSymMatrixSpace > sumsym_space_x_
TaggedObject::Tag j_c_tag_
Tag for J_c matrix.
SmartPtr< DiagMatrixSpace > diag_space_d_
TaggedObject::Tag w_tag_
Tag for W matrix.
SmartPtr< DiagMatrixSpace > diag_space_c_
virtual Index NumberOfNegEVals() const
Number of negative eigenvalues detected during last solve.
Number delta_s_
Most recent value of delta_s from Set method.
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)
Check the internal tags and decide if the passed variables are different from what is in the augmente...
SmartPtr< const SymMatrix > old_w_
A copy of a previous W used in the augmented_system_.
SmartPtr< DiagMatrixSpace > diag_space_x_
void operator=(const StdAugSystemSolver &)
Default Assignment Operator.
void CreateAugmentedSystem(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_x, const Vector &proto_s, const Vector &proto_c, const Vector &proto_d)
Create the new compound sym matrix that represents the augmented system.
SmartPtr< CompoundVectorSpace > augmented_vector_space_
Number delta_d_
Most recent value of delta_d from Set method.
StdAugSystemSolver(SymLinearSolver &LinSolver)
Constructor using only a linear solver object.
TaggedObject::Tag d_x_tag_
Tag for D_x vector, representing the diagonal matrix D_x.
void CreateAugmentedSpace(const SymMatrix &W, const Matrix &J_c, const Matrix &J_d, const Vector &proto_x, const Vector &proto_s, const Vector &proto_c, const Vector &proto_d)
Create the matrix space for the Compound Sym Matrix that represents the augmented system.
TaggedObject::Tag j_d_tag_
Tag for J_d matrix.
SmartPtr< DiagMatrixSpace > diag_space_s_
virtual bool IncreaseQuality()
Request to increase quality of solution for next solve.
TaggedObject::Tag d_d_tag_
Tag for D_d vector, representing the diagonal matrix D_d.
Base class for all derived symmetric linear solvers.
This is the base class for all derived symmetric matrix types.
unsigned int Tag
Type for the Tag values.
This file contains a base class for all exceptions and a set of macros to help with exceptions.
ESymSolverStatus
Enum to report outcome of a linear solve.
ipindex Index
Type of all indices of vectors, matrices etc.
ipnumber Number
Type of all numbers.