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

add utilities and tests for disturbance modeling #3314

Merged
merged 1 commit into from
Feb 22, 2025
Merged

Conversation

baggepinnen
Copy link
Contributor

add utilities such as

  • analysis-point specific method for generate_control_function.
  • Handling of disturbance inputs in build_explicit_observed_function and generate_control_function

also add tests for disturbance-modeling workflows

Comment on lines +505 to +525
if disturbance_inputs !== nothing
# Disturbance inputs may or may not be included as inputs, depending on disturbance_argument
ps = setdiff(ps, disturbance_inputs)
end
if disturbance_argument
disturbance_inputs = (disturbance_inputs,)
else
disturbance_inputs = ()
end
Copy link
Member

Choose a reason for hiding this comment

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

If disturbance_inputs !== nothing and disturbance_argument is false, the disturbance inputs won't be anywhere in the arguments to the function. Is this intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is intentional, that's why there's a separate argument to control whether or not they are included as function arguments.

The usecase is state estimation where the disturbance input is unknown (like sun shining in through the window) and you'd like to estimate this using a state estimator

@baggepinnen
Copy link
Contributor Author

the failures all seem unrelated?

@AayushSabharwal
Copy link
Member

Yeah they're unrelated. I'll PR to fix some

@ChrisRackauckas
Copy link
Member

rebase so we can see the tests?

Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

rm plot
@ChrisRackauckas ChrisRackauckas merged commit 3762673 into master Feb 22, 2025
37 of 46 checks passed
@ChrisRackauckas ChrisRackauckas deleted the gen_control branch February 22, 2025 05:52
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.

3 participants