split_solution: Split a primal solution into per-variable arrays

View source: R/143_problems_param_prob.R

split_solutionR Documentation

Split a primal solution into per-variable arrays

Description

Mirrors ParamConeProg.split_solution in cone_matrix_stuffing.py:330-341.

Usage

split_solution(param_prog, sltn, active_vars = NULL)

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.

Value

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


CVXR documentation built on Oct. 19, 2026, 5:07 p.m.