View source: R/142_problems_param_prob.R
| apply_param_jac | R Documentation |
Given derivatives (delc, delA, delb) of a downstream objective
with respect to the conic problem data, returns derivatives with
respect to each Parameter (keyed by parameter id). Mirrors
ParamConeProg.apply_param_jac in cone_matrix_stuffing.py:242-280.
apply_param_jac(param_prog, delc, delA, delb, active_params = NULL)
param_prog |
A |
delc |
Numeric vector of length |
delA |
Sparse matrix of shape |
delb |
Numeric vector of length |
active_params |
Optional character vector of parameter ids to restrict the output to. Default: all parameters. |
Reusing the tensor identity that apply_parameters exploits in
the forward direction:
c = c_tensor[1:x_length, ] %*% p (omitting the offset row),
vec(A) // b = A_tensor %*% p (column-major; b is last block),
the adjoint is just the transpose of the same tensors applied to
the stacked (delc, vec(delA), delb).
A named list mapping as.character(param_id) to a numeric
array of the parameter's shape.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.