
Apply the derivative of the solution map to perturbations
Source:R/136_problems_problem.R
derivative.RdForward-mode counterpart of backward(): reads delta(param) for
each parameter, applies the cone-program derivative, and writes
the predicted change in each variable's optimum to delta(var).
Mirrors cvxpy.Problem.derivative().
Details
Must be called after psolve() with requires_grad = TRUE.