-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Description
Hi, I'm new to cppad, but not new to ipopt or the concept of AD. In trying to explain my question, I was going to use this example. My question (sorry if title is not quite right), let's assume that the objective also depended on another scalar:
fg[0] = scalar*x1 * x4 * (x1 + x2 + x3) + x3;I'd like to understand how to obtain the jacobian representing d(xi)/d(scalar), but here the xi is only obtained after minimising via ipopt. Is that possible, does my question make sense? scalar can be any type as needed. So I guess in finite difference terms, I'd compute xi(scalar+eps) via an ipopt call and then xi(scalar) via another ipopt call, then compute the FD Jac as (xi(scalar+eps) - xi(scalar))/(eps). I'm hoping instead to do this by AD...
Many thanks,
Andy
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels