Ipopt Documentation  
 
Loading...
Searching...
No Matches
Ipopt::IndexPCalculator Class Reference

#include <SensIndexPCalculator.hpp>

+ Inheritance diagram for Ipopt::IndexPCalculator:

Public Member Functions

 IndexPCalculator (SmartPtr< SensBacksolver > backsolver, SmartPtr< SchurData > A_data)
 This class is the implementation of the PCalculator that corresponds to IndexSchurData.
 
virtual ~IndexPCalculator ()
 
virtual bool InitializeImpl (const OptionsList &options, const std::string &prefix)
 Overloaded from PCalculator.
 
virtual bool ComputeP ()
 Function to start the computation of P from E_0 and KKT.
 
virtual bool GetSchurMatrix (const SmartPtr< const SchurData > &B, SmartPtr< Matrix > &S)
 Function to extract a SchurMatrix corresponding to $B K^{-1} A$.
 
virtual void PrintImpl (const Journalist &jnlst, EJournalLevel level, EJournalCategory category, const std::string &name, Index indent, const std::string &prefix) const
 
- Public Member Functions inherited from Ipopt::PCalculator
 PCalculator (SmartPtr< SensBacksolver > backsolver, SmartPtr< SchurData > A_data)
 
virtual ~PCalculator ()
 
void Print (const Journalist &jnlst, EJournalLevel level, EJournalCategory category, const std::string &name, Index indent=0, const std::string &prefix="") const
 
void Print (SmartPtr< const Journalist > jnlst, EJournalLevel level, EJournalCategory category, const std::string &name, Index indent, const std::string &prefix) const
 
SmartPtr< SensBacksolverSolver () const
 Accessor methods for data and backsolver.
 
SmartPtr< const SchurDatadata_A () const
 
SmartPtr< SchurDatadata_A_nonconst () const
 
void reset_data_A ()
 
- Public Member Functions inherited from Ipopt::AlgorithmStrategyObject
bool Initialize (const Journalist &jnlst, IpoptNLP &ip_nlp, IpoptData &ip_data, IpoptCalculatedQuantities &ip_cq, const OptionsList &options, const std::string &prefix)
 This method is called every time the algorithm starts again - it is used to reset any internal state.
 
bool ReducedInitialize (const Journalist &jnlst, const OptionsList &options, const std::string &prefix)
 Reduced version of the Initialize method, which does not require special Ipopt information.
 
 AlgorithmStrategyObject ()
 Default Constructor.
 
virtual ~AlgorithmStrategyObject ()
 Destructor.
 
- Public Member Functions inherited from Ipopt::ReferencedObject
 ReferencedObject ()
 
virtual ~ReferencedObject ()
 
Index ReferenceCount () const
 
void AddRef (const Referencer *referencer) const
 
void ReleaseRef (const Referencer *referencer) const
 

Private Attributes

Index nrows_
 Rows of P = Rows of KKT.
 
Index ncols_
 Cols of P.
 
std::map< Index, SmartPtr< PColumn > > cols_
 

Additional Inherited Members

- Protected Member Functions inherited from Ipopt::AlgorithmStrategyObject
const JournalistJnlst () const
 
IpoptNLPIpNLP () const
 
IpoptDataIpData () const
 
IpoptCalculatedQuantitiesIpCq () const
 
bool HaveIpData () const
 

Detailed Description

Definition at line 17 of file SensIndexPCalculator.hpp.

Constructor & Destructor Documentation

◆ IndexPCalculator()

Ipopt::IndexPCalculator::IndexPCalculator ( SmartPtr< SensBacksolver backsolver,
SmartPtr< SchurData A_data 
)

This class is the implementation of the PCalculator that corresponds to IndexSchurData.

It expects to be used with a kind of IndexSchurData.

◆ ~IndexPCalculator()

virtual Ipopt::IndexPCalculator::~IndexPCalculator ( )
virtual

Member Function Documentation

◆ InitializeImpl()

virtual bool Ipopt::IndexPCalculator::InitializeImpl ( const OptionsList options,
const std::string &  prefix 
)
virtual

Overloaded from PCalculator.

Reimplemented from Ipopt::PCalculator.

◆ ComputeP()

virtual bool Ipopt::IndexPCalculator::ComputeP ( )
virtual

Function to start the computation of P from E_0 and KKT.

Implements Ipopt::PCalculator.

◆ GetSchurMatrix()

virtual bool Ipopt::IndexPCalculator::GetSchurMatrix ( const SmartPtr< const SchurData > &  B,
SmartPtr< Matrix > &  S 
)
virtual

Function to extract a SchurMatrix corresponding to $B K^{-1} A$.

If B==NULL, use A=B.

Implements Ipopt::PCalculator.

◆ PrintImpl()

virtual void Ipopt::IndexPCalculator::PrintImpl ( const Journalist jnlst,
EJournalLevel  level,
EJournalCategory  category,
const std::string &  name,
Index  indent,
const std::string &  prefix 
) const
virtual

Implements Ipopt::PCalculator.

Member Data Documentation

◆ nrows_

Index Ipopt::IndexPCalculator::nrows_
private

Rows of P = Rows of KKT.

Definition at line 55 of file SensIndexPCalculator.hpp.

◆ ncols_

Index Ipopt::IndexPCalculator::ncols_
private

Cols of P.

Definition at line 58 of file SensIndexPCalculator.hpp.

◆ cols_

std::map<Index, SmartPtr<PColumn> > Ipopt::IndexPCalculator::cols_
private

Definition at line 60 of file SensIndexPCalculator.hpp.


The documentation for this class was generated from the following file: