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

Bug fix for the ControlModel class #16

Merged
merged 1 commit into from
Aug 15, 2023
Merged

Bug fix for the ControlModel class #16

merged 1 commit into from
Aug 15, 2023

Conversation

dc-luo
Copy link
Collaborator

@dc-luo dc-luo commented Aug 12, 2023

Fixed a bug in the computation of the gradient norm in evalGradientParameter and evalGradientControl within ControlModel.

The output gradient norm is not typically used downstream, but can cause an error where the inner product is negative and its square root is invalid.

Also updated the QoI in risk measure unit tests to depend on all three variables (state, parameter, control).

@dc-luo dc-luo requested a review from tomoleary August 12, 2023 22:55
@dc-luo dc-luo merged commit 1a0fd97 into main Aug 15, 2023
1 check passed
@dc-luo dc-luo deleted the model-dev branch August 16, 2023 02:11
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