Skip to content
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

TR description in optimization tutorial #2181

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

peoe
Copy link
Contributor

@peoe peoe commented Sep 18, 2023

This PR proposes an addition to the optimization tutorial in order to describe the usage of the trust-region algorithm and parts of the underlying theory.

I'd be glad to get some feedback on the clarity of the wording, especially the distinction of the inner/outer loop mechanic because this is essential for the algorithm.

@github-actions
Copy link
Contributor

Mirroring external branch in external_pr_2181

@sdrave sdrave added the pr:new-feature Introduces a new feature label Sep 19, 2023
@sdrave sdrave requested a review from TiKeil September 19, 2023 16:15
Copy link

@TiKeil TiKeil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Peter,

thanks for including the TR methods in the tutorial. I think the section is well written and the wording was already quite good. I added some comments that you could commit if you want.
These are mostly just suggestions.

Two major comments:

  1. The methods opt_along_path and opt_along_path_adaptively were basically in the tutorial since we did not have the TR method, yet. The TR method can be seen as the certified replacement of the other methods. I think it is a little bit dangerous to sell these two methods before the TR method as they were simply invented for presentational reasons and are rather hacked inside the tutorial, not using any pyMOR algorithm. Thus, I would suggest removing these two methods entirely and only concentrating on the TR method.
  2. I know that it is a little bit more work, but I think it would be really great if we could get rid of the 'scipy.optimize.minimize' method entirely.

I do not remember but do we use the same problem as in the TR demo for the tutorial?

Thank you.

docs/source/tutorial_optimization.md Outdated Show resolved Hide resolved
docs/source/tutorial_optimization.md Outdated Show resolved Hide resolved
docs/source/tutorial_optimization.md Outdated Show resolved Hide resolved
docs/source/tutorial_optimization.md Outdated Show resolved Hide resolved
docs/source/tutorial_optimization.md Outdated Show resolved Hide resolved
docs/source/tutorial_optimization.md Outdated Show resolved Hide resolved
docs/source/tutorial_optimization.md Show resolved Hide resolved
docs/source/tutorial_optimization.md Show resolved Hide resolved
docs/source/tutorial_optimization.md Show resolved Hide resolved
docs/source/tutorial_optimization.md Show resolved Hide resolved
@peoe
Copy link
Contributor Author

peoe commented Sep 26, 2023

Thanks for the extensive review @TiKeil ! For now I have implemented the first part of your recommendations, I'll try and get around to the second part tomorrow.

As far as I can tell, the optimization tutorial uses the problem from the linear_optimization.py demo -- which we simply import in the trust_region.py demo.

@sdrave
Copy link
Member

sdrave commented Sep 27, 2023

As far as I can tell, the optimization tutorial uses the problem from the linear_optimization.py demo -- which we simply import in the trust_region.py demo.

We now have pymor.models.examples where such models can be placed into. At least if they are interesting enough.

@pmli pmli added this to the 2023.2 milestone Nov 2, 2023
@sdrave
Copy link
Member

sdrave commented Nov 14, 2023

@peoe, @TiKeil, how should we proceed with this PR? I think this need to come to a conclusion. If need be, I can try to do it, but I'm not sure if I'm the best person for the job.

@TiKeil
Copy link

TiKeil commented Nov 14, 2023

Is there something to decide upon or is it "just" working on finalizing the PR ?

@sdrave
Copy link
Member

sdrave commented Nov 17, 2023

Is there something to decide upon or is it "just" working on finalizing the PR ?

I think it's just finalizing the tutorial.

@sdrave
Copy link
Member

sdrave commented Nov 23, 2023

@TiKeil, hard freeze for the next release is in one week. Do you think you find time to take a look at this until then?

@TiKeil
Copy link

TiKeil commented Nov 26, 2023

I'm afraid I will not be able to work on this before the freeze.
But I will look at it asap.

@sdrave
Copy link
Member

sdrave commented Nov 27, 2023

I'm afraid I will not be able to work on this before the freeze. But I will look at it asap.

Ok, I'll remove the release milestone for now. Release is planned for December 7. As this is only documentation related, it might still get in after hard freeze ..

@sdrave sdrave removed this from the 2023.2 milestone Nov 27, 2023
@sdrave sdrave added this to the 2024.1 milestone Feb 29, 2024
@sdrave
Copy link
Member

sdrave commented Mar 14, 2024

@TiKeil, did you have a chance to look at this PR? Soft freeze for the next release would be May 31 ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:new-feature Introduces a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants