Toolboxmor
For the configuration of the case, and the usage in a C++ application, refer to ToolboxMor documentation. More details on the functions of the toolbox can be found in this page.
1. Model
We have a model defining a parameter-dependant problem to solve \(a(u, v; \mu) = f(v; \mu)\), and we are foccussing on the following outputs \(s_i(\mu) = L_i(\mu)^T u(\mu)\) for \(i\in [|1, n_\text{outputs}|]\), where \(n_\text{outputs}\) is the number of CRBOutputs
described in the JSON file of the case.
We assume that we have the following decompositions :
In the term of matrices and vectors, it translates by :
2. Get affine decomposition
[Aq, Fq] = model.getAffineDecomposition()
-
Aq
is alist
of lenght 1, andAq[0]
contains the list of the matrices of the affine decomposition of the bilinear form :Aq[0] = [
\(A^1\),…,
\(A^{Q_a}\)]
-
Fq
is a list a lenght \(1 + n_\text{outputs}\).Fq[0]
contains the affine decomposition of the right-hand sideFq[0] = [
\(F^1\),…,
\(F^{Q_f}\)]
, and for \(i\in [|1,n_\text{outputs}|]\),Fq[i]
contains the affine decomposition of the \(i\)-th outputFq[i] = [
\(L_i^1\),…,
\(L_i^{Q_{l_i}}\)]
.
[betaA, betaF] = model.computeBetaQm(mu)
where mu
is a ParameterSpaceElement
(see Parameters).
-
betaA
is a list of length 1, andbetaA[0]
contains the coefficients of the affine decompositionbetaA[0] = [
\(\beta_A^1\),…,
\(\beta_A^{Q_a}\)]
. -
betaF
is a list of length \(1 + n_\text{outputs}\) contains the coefficients of the affine decompositions of \(f\), and \(s_i\) :-
betaF[0][0] = [
\(\beta_F^1\),…,
\(\beta_F^{Q_f}\)]
, -
betaF[i][0] = [
\(\beta_{L_i}^1\),…,
\(\beta_{L_i}^{Q_{l_i}}\)]
for \(i\in [|1,n_\text{outputs}|]\).
-