Skip to content

remove redundant controller divisions#3745

Open
oscardssmith wants to merge 3 commits into
SciML:masterfrom
oscardssmith:os/cleanup-controller
Open

remove redundant controller divisions#3745
oscardssmith wants to merge 3 commits into
SciML:masterfrom
oscardssmith:os/cleanup-controller

Conversation

@oscardssmith

Copy link
Copy Markdown
Member

We were doing a lot of divisions for no reason. Doing things in terms of dt_factor instead of inv(dt_factor)` maeks the math a lot nicer.

Comment on lines +984 to +985
This algorithm is gennerally less efficient than a PI controller, but is used in adaptive order methods
(e.g. AdaptiveRadau) where a simpler stepsize controller makes an order controller eaiser.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That's not true though? This isn't a Proportional Controller, it's a PredictiveController which is different.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

PI is our default controller though, it's just the 2nd part that is wrong, right?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's not generally less efficient for all solvers, and it's not used with AdaptiveRadau

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

what solvers is it more efficient for? I don't think we use it by default for any of them.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we probably should use them on some sdirks

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

which/why?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It attempts to predict Newton instabilities, so possibly all. It's just an underexplored topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants