pymor.algorithms.lradi¶
Module Contents¶
Functions¶
Return available Lyapunov solvers with default options. |
|
Compute an approximate low-rank solution of a Lyapunov equation. |
|
Find starting projection shifts. |
|
Find further projection shifts. |
- pymor.algorithms.lradi.lyap_lrcf_solver_options(lradi_tol=1e-10, lradi_maxiter=500, lradi_shifts='projection_shifts', projection_shifts_init_maxiter=20, projection_shifts_init_seed=None, projection_shifts_subspace_columns=6)[source]¶
Return available Lyapunov solvers with default options.
Parameters
- lradi_tol
See
solve_lyap_lrcf.- lradi_maxiter
See
solve_lyap_lrcf.- lradi_shifts
See
solve_lyap_lrcf.- projection_shifts_init_maxiter
- projection_shifts_init_seed
- projection_shifts_subspace_columns
See
projection_shifts.
Returns
A dict of available solvers with default solver options.
- pymor.algorithms.lradi.solve_lyap_lrcf(A, E, B, trans=False, options=None)[source]¶
Compute an approximate low-rank solution of a Lyapunov equation.
See
pymor.algorithms.lyapunov.solve_lyap_lrcffor a general description.This function uses the low-rank ADI iteration as described in Algorithm 4.3 in [Kurschner16].
Parameters
- A
The non-parametric
OperatorA.- E
The non-parametric
OperatorE orNone.- B
The operator B as a
VectorArrayfromA.source.- trans
Whether the first
Operatorin the Lyapunov equation is transposed.- options
The solver options to use (see
lyap_lrcf_solver_options).
Returns
- Z
Low-rank Cholesky factor of the Lyapunov equation solution,
VectorArrayfromA.source.
- pymor.algorithms.lradi.projection_shifts_init(A, E, B, shift_options)[source]¶
Find starting projection shifts.
Uses Galerkin projection on the space spanned by the right-hand side if it produces stable shifts. Otherwise, uses a randomly generated subspace. See [Kurschner16], pp. 92-95.
Parameters
- A
The
OperatorA from the corresponding Lyapunov equation.- E
The
OperatorE from the corresponding Lyapunov equation.- B
The
VectorArrayB from the corresponding Lyapunov equation.- shift_options
The shift options to use (see
lyap_lrcf_solver_options).
Returns
- shifts
A
NumPy arraycontaining a set of stable shift parameters.
- pymor.algorithms.lradi.projection_shifts(A, E, V, Z, prev_shifts, shift_options)[source]¶
Find further projection shifts.
Uses Galerkin projection on spaces spanned by LR-ADI iterates. See [Kurschner16], pp. 92-95.
Parameters
- A
The
OperatorA from the corresponding Lyapunov equation.- E
The
OperatorE from the corresponding Lyapunov equation.- V
A
VectorArrayrepresenting the currently computed iterate.- Z
A
VectorArrayrepresenting the current approximate solution.- prev_shifts
A
NumPy arraycontaining the set of all previously used shift parameters.- shift_options
The shift options to use (see
lyap_lrcf_solver_options).
Returns
- shifts
A
NumPy arraycontaining a set of stable shift parameters.