split_solution: Split a primal solution into per-variable arrays

View source: R/142_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:282-302.

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 Aug. 24, 2026, 9:10 a.m.