13 #ifndef __IPMUMPSSOLVERINTERFACE_HPP__ 14 #define __IPMUMPSSOLVERINTERFACE_HPP__ 38 const std::string& prefix
59 Index numberOfNegEVals
93 std::list<Index>& c_deps
190 Index numberOfNegEVals
ESymSolverStatus Factorization(bool check_NegEVals, Index numberOfNegEVals)
Call MUMPS (job=2) to factorize the Matrix.
ESymSolverStatus
Enum to report outcome of a linear solve.
virtual ESymSolverStatus InitializeStructure(Index dim, Index nonzeros, const Index *airn, const Index *ajcn)
Method for initializing internal structures.
Base class for interfaces to symmetric indefinite linear solvers for sparse matrices.
virtual bool ProvidesInertia() const
Query whether inertia is computed by linear solver.
virtual bool IncreaseQuality()
Request to increase quality of solution for next solve.
Index mumps_scaling_
Scaling in MUMPS.
bool initialized_
Flag indicating if internal data is initialized.
Number pivtol_
Pivot tolerance.
ipindex Index
Type of all indices of vectors, matrices etc.
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.
virtual ~MumpsSolverInterface()
Destructor.
virtual Number * GetValuesArrayPtr()
Method returning an internal array into which the nonzero elements (in the same order as ja) will be ...
Index mumps_pivot_order_
Pivot order in MUMPS.
This file contains a base class for all exceptions and a set of macros to help with exceptions...
Index negevals_
Number of negative eigenvalues.
Template class for Smart Pointers.
static std::string GetName()
give name of MUMPS with version info
This class stores a list of user set options.
virtual ESymSolverStatus MultiSolve(bool new_matrix, const Index *airn, const Index *ajcn, Index nrhs, Number *rhs_vals, bool check_NegEVals, Index numberOfNegEVals)
Solve operation for multiple right hand sides.
MumpsSolverInterface()
Constructor.
Index mumps_permuting_scaling_
Permutation and scaling method in MUMPS.
void * mumps_ptr_
Primary MUMP data structure.
Number pivtolmax_
Maximal pivot tolerance.
bool have_symbolic_factorization_
Flag indicating if symbolic factorization has already been called.
bool warm_start_same_structure_
Flag indicating whether the TNLP with identical structure has already been solved before...
Number mumps_dep_tol_
Threshold in MUMPS to state that a constraint is linearly dependent.
bool InitializeImpl(const OptionsList &options, const std::string &prefix)
Implementation of the initialization method that has to be overloaded by for each derived class...
virtual bool ProvidesDegeneracyDetection() const
Query whether the indices of linearly dependent rows/columns can be determined by this linear solver...
ipnumber Number
Type of all numbers.
Index mem_percent_
Percent increase in memory.
EMatrixFormat MatrixFormat() const
Query of requested matrix type that the linear solver understands.
EMatrixFormat
Enum to specify sparse matrix format.
static void RegisterOptions(SmartPtr< RegisteredOptions > roptions)
ESymSolverStatus Solve(Index nrhs, Number *rhs_vals)
Call MUMPS (job=3) to do the solve.
bool refactorize_
Flag that is true if we just requested the values of the matrix again (SYMSOLVER_CALL_AGAIN) and have...
ESymSolverStatus SymbolicFactorization()
Call MUMPS (job=1) to perform symbolic manipulations, and reserve memory.
virtual Index NumberOfNegEVals() const
Number of negative eigenvalues detected during last factorization.
void operator=(const MumpsSolverInterface &)
Default Assignment Operator.
bool pivtol_changed_
Flag indicating if the matrix has to be refactorized because the pivot tolerance has been changed...
Interface to the linear solver Mumps, derived from SparseSymLinearSolverInterface.