repeat calls to gradient

19 views
Skip to first unread message

Nick Larson

unread,
May 22, 2021, 6:07:30 PM5/22/21
to cvxpy
Is it possible to speed up problem.gradient() if I want to test a list of perturbations to a parameter? Right now I am calling .gradient() for every perturbation and it takes a long time.

What I am hoping is I can get the gradient of the variable with respect to each parameter as a matrix with shape of num(variables) by num(parameters). Is this possible? This way for any new vector of deltas I can compute the expected values as a first order approximation without having to reapply differentiation.

Thanks for the help!

Nick

Steven Diamond

unread,
May 24, 2021, 6:43:48 PM5/24/21
to cvxpy
In theory it should be possible to do something here, but it will be a while before any developer had time to look into this.
Reply all
Reply to author
Forward
0 new messages