-
Notifications
You must be signed in to change notification settings - Fork 3
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
Why is Y_TLM ignored using Adjoint methods #3
Comments
The correct option is |
Ok, maybe its just not clear to me what is meant with what. I'm sorry. Let's see if we are on the same side notation-wise. If I have the functional
I understand that after the solver call, the output contains
|
I think λ^T(0) dy_0/dp = dΨ/dy_0 * dy_0/dp = dΨ/dp = μ^T. I'm not sure I completely understand your question. |
@Steven-Roberts I am confused. I think I am mixing up the continuous and the discrete adjoint formulations... Therefore this is not really an issue in the code but rather an issue of my comprehension. Though I think the result should be equivalent when the adjoining the continuous equations and discretizing afterwards compared to discretizing the problem and ajoining afterwards? The mu that I have in mind and the output 'Mu' are therefore not the same? "My" mu is the (constant) lagrange multiplier obtained by adjoining the system ODE and initial state to the cost functional (with integral/running costs included in Psi as above) Now after taking the derivative of L with respect to p and after integration by part one has to set the adjoint ODE with final value as shown above to get rid calculating dy/dp at any time. In the process, one also has to set |
In the continuous adjoint equations, the gradient of a functional w.r.t. parameters is also depending on how the initial states of the system ODE depend on those parameters. If I understand correctly, this is the option/parameter
Y_TLM
. But why is this ignored for the adjoint case? Is this somehow implicitly calculated?Thank you
The text was updated successfully, but these errors were encountered: