Ipopt
3.12.12
|
Interface to the symmetric linear solver MA57, derived from SparseSymLinearSolverInterface. More...
#include <IpMa57TSolverInterface.hpp>
Public Member Functions | |
bool | InitializeImpl (const OptionsList &options, const std::string &prefix) |
overloaded from AlgorithmStrategyObject More... | |
Constructor/Destructor | |
Ma57TSolverInterface () | |
Constructor. More... | |
virtual | ~Ma57TSolverInterface () |
Destructor. More... | |
Methods for requesting solution of the linear system. | |
virtual ESymSolverStatus | InitializeStructure (Index dim, Index nonzeros, const Index *airn, const Index *ajcn) |
Method for initializing internal stuctures. More... | |
virtual double * | GetValuesArrayPtr () |
Method returing an internal array into which the nonzero elements (in the same order as airn and ajcn) are to be stored by the calling routine before a call to MultiSolve with a new_matrix=true. More... | |
virtual ESymSolverStatus | MultiSolve (bool new_matrix, const Index *airn, const Index *ajcn, Index nrhs, double *rhs_vals, bool check_NegEVals, Index numberOfNegEVals) |
Solve operation for multiple right hand sides. More... | |
virtual Index | NumberOfNegEVals () const |
Number of negative eigenvalues detected during last factorization. More... | |
virtual bool | IncreaseQuality () |
Request to increase quality of solution for next solve. More... | |
virtual bool | ProvidesInertia () const |
Query whether inertia is computed by linear solver. More... | |
EMatrixFormat | MatrixFormat () const |
Query of requested matrix type that the linear solver understands. More... | |
![]() | |
SparseSymLinearSolverInterface () | |
virtual | ~SparseSymLinearSolverInterface () |
virtual bool | ProvidesDegeneracyDetection () const |
Query whether the indices of linearly dependent rows/columns can be determined by this linear solver. More... | |
virtual ESymSolverStatus | DetermineDependentRows (const Index *ia, const Index *ja, std::list< Index > &c_deps) |
This method determines the list of row indices of the linearly dependent rows. More... | |
![]() | |
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. More... | |
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. More... | |
AlgorithmStrategyObject () | |
Default Constructor. More... | |
virtual | ~AlgorithmStrategyObject () |
Default Destructor. More... | |
![]() | |
ReferencedObject () | |
virtual | ~ReferencedObject () |
Index | ReferenceCount () const |
void | AddRef (const Referencer *referencer) const |
void | ReleaseRef (const Referencer *referencer) const |
Static Public Member Functions | |
static void | RegisterOptions (SmartPtr< RegisteredOptions > roptions) |
Methods for IpoptType. More... | |
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. | |
Ma57TSolverInterface (const Ma57TSolverInterface &) | |
Copy Constructor. More... | |
void | operator= (const Ma57TSolverInterface &) |
Overloaded Equals Operator. More... | |
Internal functions | |
ESymSolverStatus | SymbolicFactorization (const Index *airn, const Index *ajcn) |
Call MA57AD and reserve memory for MA57 data. More... | |
ESymSolverStatus | Factorization (const Index *airn, const Index *ajcn, bool check_NegEVals, Index numberOfNegEVals) |
Call MA57BD to factorize the Matrix. More... | |
ESymSolverStatus | Backsolve (Index nrhs, double *rhs_vals) |
Call MA57CD to do the backsolve. More... | |
Private Attributes | |
Information about the matrix | |
Index | dim_ |
Number of rows and columns of the matrix. More... | |
Index | nonzeros_ |
Number of nonzeros of the matrix. More... | |
Information about most recent factorization/solve | |
Index | negevals_ |
Number of negative eigenvalues. More... | |
Initialization flags | |
bool | initialized_ |
Flag indicating if internal data is initialized. More... | |
bool | pivtol_changed_ |
Flag indicating if the matrix has to be refactorized because the pivot tolerance has been changed. More... | |
bool | refactorize_ |
Flag that is true if we just requested the values of the matrix again (SYMSOLVER_CALL_AGAIN) and have to factorize again. More... | |
Solver specific data/options | |
Number | pivtol_ |
Pivol tolerance. More... | |
Number | pivtolmax_ |
Maximal pivot tolerance. More... | |
Number | ma57_pre_alloc_ |
Factor for estimating initial size of work arrays. More... | |
bool | warm_start_same_structure_ |
Flag indicating whether the TNLP with identical structure has already been solved before. More... | |
Data for the linear solver. | |
Storing factorization and other solver specific data structure. | |
double | wd_cntl_ [5] |
ma57int | wd_icntl_ [20] |
ma57int | wd_info_ [40] |
double | wd_rinfo_ [20] |
ma57int | wd_lkeep_ |
ma57int * | wd_keep_ |
ma57int * | wd_iwork_ |
double * | wd_fact_ |
ma57int | wd_lfact_ |
ma57int * | wd_ifact_ |
ma57int | wd_lifact_ |
double * | a_ |
factor A of matrix More... | |
Additional Inherited Members | |
![]() | |
enum | EMatrixFormat { Triplet_Format, CSR_Format_0_Offset, CSR_Format_1_Offset, CSR_Full_Format_0_Offset, CSR_Full_Format_1_Offset } |
Enum to specify sparse matrix format. More... | |
![]() | |
const Journalist & | Jnlst () const |
IpoptNLP & | IpNLP () const |
IpoptData & | IpData () const |
IpoptCalculatedQuantities & | IpCq () const |
bool | HaveIpData () const |
Interface to the symmetric linear solver MA57, derived from SparseSymLinearSolverInterface.
Definition at line 27 of file IpMa57TSolverInterface.hpp.
Ipopt::Ma57TSolverInterface::Ma57TSolverInterface | ( | ) |
Constructor.
|
virtual |
Destructor.
|
private |
Copy Constructor.
|
virtual |
overloaded from AlgorithmStrategyObject
Implements Ipopt::SparseSymLinearSolverInterface.
|
virtual |
Method for initializing internal stuctures.
Here, ndim gives the number of rows and columns of the matrix, nonzeros give the number of nonzero elements, and airn and acjn give the positions of the nonzero elements.
Implements Ipopt::SparseSymLinearSolverInterface.
|
virtual |
Method returing an internal array into which the nonzero elements (in the same order as airn and ajcn) are to be stored by the calling routine before a call to MultiSolve with a new_matrix=true.
The returned array must have space for at least nonzero elements.
Implements Ipopt::SparseSymLinearSolverInterface.
|
virtual |
Solve operation for multiple right hand sides.
Overloaded from SparseSymLinearSolverInterface.
Implements Ipopt::SparseSymLinearSolverInterface.
|
virtual |
Number of negative eigenvalues detected during last factorization.
Returns the number of negative eigenvalues of the most recent factorized matrix. This must not be called if the linear solver does not compute this quantities (see ProvidesInertia).
Implements Ipopt::SparseSymLinearSolverInterface.
|
virtual |
Request to increase quality of solution for next solve.
Ask linear solver to increase quality of solution for the next solve (e.g. increase pivot tolerance). Returns false, if this is not possible (e.g. maximal pivot tolerance already used.)
Implements Ipopt::SparseSymLinearSolverInterface.
|
inlinevirtual |
Query whether inertia is computed by linear solver.
Returns true, if linear solver provides inertia.
Implements Ipopt::SparseSymLinearSolverInterface.
Definition at line 96 of file IpMa57TSolverInterface.hpp.
|
inlinevirtual |
Query of requested matrix type that the linear solver understands.
Implements Ipopt::SparseSymLinearSolverInterface.
Definition at line 103 of file IpMa57TSolverInterface.hpp.
|
static |
Methods for IpoptType.
|
private |
Overloaded Equals Operator.
|
private |
Call MA57AD and reserve memory for MA57 data.
Reserve memory for iw_ and ikeep_, call MA57AD to perform symbolic manipulations, and reserve all the remaining data memory
|
private |
Call MA57BD to factorize the Matrix.
It is assumed that the first nonzeros_ element of a_ contain the values of the matrix to be factorized.
|
private |
Call MA57CD to do the backsolve.
|
private |
Number of rows and columns of the matrix.
Definition at line 133 of file IpMa57TSolverInterface.hpp.
|
private |
Number of nonzeros of the matrix.
Definition at line 136 of file IpMa57TSolverInterface.hpp.
|
private |
Number of negative eigenvalues.
Definition at line 142 of file IpMa57TSolverInterface.hpp.
|
private |
Flag indicating if internal data is initialized.
For initialization, this object needs to have seen a matrix
Definition at line 149 of file IpMa57TSolverInterface.hpp.
|
private |
Flag indicating if the matrix has to be refactorized because the pivot tolerance has been changed.
Definition at line 152 of file IpMa57TSolverInterface.hpp.
|
private |
Flag that is true if we just requested the values of the matrix again (SYMSOLVER_CALL_AGAIN) and have to factorize again.
Definition at line 156 of file IpMa57TSolverInterface.hpp.
|
private |
Pivol tolerance.
Definition at line 162 of file IpMa57TSolverInterface.hpp.
|
private |
Maximal pivot tolerance.
Definition at line 164 of file IpMa57TSolverInterface.hpp.
|
private |
Factor for estimating initial size of work arrays.
Definition at line 166 of file IpMa57TSolverInterface.hpp.
|
private |
Flag indicating whether the TNLP with identical structure has already been solved before.
Definition at line 169 of file IpMa57TSolverInterface.hpp.
|
private |
Definition at line 176 of file IpMa57TSolverInterface.hpp.
|
private |
Definition at line 177 of file IpMa57TSolverInterface.hpp.
|
private |
Definition at line 179 of file IpMa57TSolverInterface.hpp.
|
private |
Definition at line 180 of file IpMa57TSolverInterface.hpp.
|
private |
Definition at line 182 of file IpMa57TSolverInterface.hpp.
|
private |
Definition at line 183 of file IpMa57TSolverInterface.hpp.
|
private |
Definition at line 185 of file IpMa57TSolverInterface.hpp.
|
private |
Definition at line 187 of file IpMa57TSolverInterface.hpp.
|
private |
Definition at line 188 of file IpMa57TSolverInterface.hpp.
|
private |
Definition at line 189 of file IpMa57TSolverInterface.hpp.
|
private |
Definition at line 190 of file IpMa57TSolverInterface.hpp.
|
private |
factor A of matrix
Definition at line 194 of file IpMa57TSolverInterface.hpp.