GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Passivity preserving model reduction via spectral factorization by steff-mueller · Pull Request #2033 · pymor/pymor

Conversation

@steff-mueller

@steff-mueller steff-mueller commented May 10, 2023

Copy link
Copy Markdown
Contributor

This PR implements the method proposed in [BU22].

  • This PR depends on Add S parameter to Riccati equation solvers #1837 and Positive real balanced truncation (PRBT) #1847. The method is not depending on PRBT itself, but on other bits included in Positive real balanced truncation (PRBT) #1847.

[BU22] Tobias Breiten, Benjamin Unger, Passivity preserving model reduction via spectral factorization, Automatica, Volume 142, 2022, 110368, ISSN 0005-1098, https://doi.org/10.1016/j.automatica.2022.110368 (https://www.sciencedirect.com/science/article/pii/S0005109822002187)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added the autoupdate label May 10, 2023
steff-mueller
steff-mueller commented May 10, 2023
View reviewed changes
Comment thread src/pymor/reductors/spectral_factor.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@pmli pmli added the pr:new-feature Introduces a new feature label May 10, 2023
@pmli pmli added this to the 2023.1 milestone May 10, 2023
@sdrave sdrave removed the autoupdate label May 12, 2023
@sdrave sdrave assigned pmli May 31, 2023
@steff-mueller
steff-mueller marked this pull request as ready for review June 14, 2023 06:31
@steff-mueller

steff-mueller commented Jun 14, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

This PR is now ready. I'll rebase and remove the merge conflicts as soon as #1837 and #1847 are merged into main.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@steff-mueller
steff-mueller requested a review from pmli June 19, 2023 12:15
@pmli

pmli commented Jun 28, 2023

Copy link
Copy Markdown
Member

This PR is now ready. I'll rebase and remove the merge conflicts as soon as #1837 and #1847 are merged into main.

The first one is merged and the second is also hopefully soon. I would take a look at this PR after a rebase.

steff-mueller reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sdrave and others added 11 commits June 29, 2023 09:44
@sdrave @steff-mueller
[PHLTIModel] support PHLTIModels with Q
2eec936
@Jonas-Nicodemus @steff-mueller
[pymordemos.phlti] test riccati equation
1ea80b7
@Jonas-Nicodemus @steff-mueller
[pymordemos.phlti] update phlti demo
5ffd87e
@steff-mueller
Early draft of passivity-preserving MOR
b61e591
via spectral factorization.

The algorithm does not yet numerically behave as it should.
@steff-mueller
[reductors.spectral_factor] Add more debugging
3a2de93
statements.

It seems like the problem is that IRKA does not return a stable system
for the spectral factor?
@steff-mueller
[reductors.spectral_factor] Support E for internal reductors.
27f7045
This is a quick fix. The better way is to generalize the method to
LTI systems with E.

The method behaves now as it should for the MSD demo.
@steff-mueller
[reductors.spectral_factor] Support non-identity E
63cbaaa
We at present assume that E is nonsingular.
@steff-mueller
[reductors.spectral_factor] Docstrings
1f597ef
@steff-mueller
[reductors.spectral_factor] Add test
d05f520
@steff-mueller
[reductors.spectral_factor] Improve docstring
5e4f106
@steff-mueller
merge fixes
ceca9f5
@steff-mueller
steff-mueller force-pushed the spectral_factor_mor branch from 6bc683c to ceca9f5 Compare June 29, 2023 08:26
@steff-mueller

steff-mueller commented Jun 29, 2023

Copy link
Copy Markdown
Contributor Author

pre-commit.ci autofix

pre-commit-ci[bot] reacted with rocket emoji
All reactions
  • 🚀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hooks
0ea5b76
for more information, see https://pre-commit.ci
@steff-mueller

steff-mueller commented Jun 29, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Two notes about the phlti.py demo:

  • The SpectralFactorReductor H2 error stagnates from r=18 to r=20. One possible reason could be an inaccurate solution of the positive real Gramian. I think debugging this is out of scope of the current release.
  • (unrelated to this PR: For the phlti.py demo , the standard IRKAReductor runs unbearably long for me and fails to converge for some r. Do you have the same issue? This is for the default MSD parameters n=100 and m=2.)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

pmli added 4 commits June 29, 2023 09:42
@pmli
[tests.reductors.spectral_factor] fix solver choice
3bdc84e
@pmli
[demos.phlti] speed up IRKA, other improvements
7d62e3a
@pmli
[reductors.spectral_factor] docs fixes, minor changes
a35cf83
@pmli
[AUTHORS.md] update
a55bce3
pmli
pmli approved these changes Jun 29, 2023
View reviewed changes
@pmli

pmli commented Jun 29, 2023

Copy link
Copy Markdown
Member

Thanks @steff-mueller, it looks good to me, and the tests will hopefully pass now.

Two notes about the phlti.py demo:

  • The SpectralFactorReductor H2 error stagnates from r=18 to r=20. One possible reason could be an inaccurate solution of the positive real Gramian. I think debugging this is out of scope of the current release.

Fine with me.

  • (unrelated to this PR: For the phlti.py demo , the standard IRKAReductor runs unbearably long for me and fails to converge for some r. Do you have the same issue? This is for the default MSD parameters n=100 and m=2.)

Yes, I noticed the same issue. I changed the convergence criterion, which reduced the number of iterations, so it's about 3 times faster, but still the slowest compared to other reductors. I think that's fine for now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pmli
pmli enabled auto-merge June 29, 2023 14:56
@steff-mueller

steff-mueller commented Jun 29, 2023

Copy link
Copy Markdown
Contributor Author

Do we know why the checks fail?

Yes, I noticed the same issue. I changed the convergence criterion, which reduced the number of iterations, so it's about 3 times faster, but still the slowest compared to other reductors. I think that's fine for now.

Standard IRKA seems to converge better for larger n of the MSD problem.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

pmli added 2 commits June 29, 2023 12:41
@pmli
[tests.reductors.spectral_factor] mark as builtin
932ebc0
@pmli
[tests.reductors.ph.ph_irka] mark as builtin
0635050
@pmli
pmli added this pull request to the merge queue Jun 29, 2023
Merged via the queue into main with commit 8650f55 Jun 29, 2023
@pmli
pmli deleted the spectral_factor_mor branch June 29, 2023 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@sdrave sdrave sdrave left review comments
@pmli pmli pmli approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@pmli pmli

Labels

pr:new-feature Introduces a new feature

Projects

None yet

Milestone

2023.1

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@steff-mueller @pmli @sdrave @Jonas-Nicodemus
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.