Learn R Programming

CVXR (version 1.9.1)

split_solution: Split a primal solution into per-variable arrays

Description

Mirrors ParamConeProg.split_solution in cone_matrix_stuffing.py:282-302.

Usage

split_solution(param_prog, sltn, active_vars = NULL)

Value

A named list mapping as.character(var_id) to a numeric array of the variable's shape.

Arguments

param_prog

A ParamConeProg.

sltn

Numeric vector of length x_length -- the primal x from the conic forward solve.

active_vars

Optional character vector of variable ids to restrict the output to. Default: all variables.