-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameterizing input-output models #626
Conversation
I for one did not know about draft PRs until just now 👍 |
@pmli, is there a concrete benefit to have the parameter in the matrix equation solver interface? If not, I would not see much reason to add a |
Right, that's something I'm not sure about. I was confused that I guess one difference between matrix equation solver accepting and not accepting parameters is when Amu = A.assemble(mu)
Emu = E.assemble(mu)
sEmA = s * Emu - Amu
V = sEmA.apply_inverse(U) and aEmA = s * E - A
V = sEmA.apply_inverse(U, mu=mu) ? |
No, there should not be any difference. ( |
Ok, good. I would ask what about |
@sdrave What do you think about adding an |
@pmli, such a method would surely be useful. One downside is, that similar to reductors we would have a problem with subclassing: basically, everyone subclassing a model would have to implement An alternative might be to implement assemble in the reductor and give the reductor the parameter as an init argument. |
@sdrave In this case, should a non-parametric reductor return a parametric or a non-parametric ROM? |
A non-parametric ROM i guess. |
@sdrave I could use some help with creating a matrix-based parametric |
@pmli, basically: A = LincombOperator([A0, A1], [1, ProjectionParameterFunctional('foo', ())]) This will make A depend on one scalar parameter named 'foo'. (I know |
58e2a28
to
6c5553f
Compare
Closes #487.
This is not yet ready to merge, so I'm testing the draft pull request feature.
I would like to hear comments from @pymor/pymor-devs about the changes concerning the usage of parameters, e.g. how often should
parse_parameters
be used and should matrix equation solvers expect a parameter or only work with non-parametric operators.