problem_unpack_results: Unpack Solver Results into a Problem

View source: R/132_problems_problem.R

problem_unpack_resultsR Documentation

Unpack Solver Results into a Problem

Description

Inverts the reduction chain and unpacks the raw solver solution into the original problem's variables and constraints. This is step 3 of the decomposed solve pipeline:

  1. problem_data() – compile the problem

  2. solve_via_data(chain, data) – call the solver

  3. problem_unpack_results() – invert and unpack

Usage

problem_unpack_results(problem, solution, chain, inverse_data)

Arguments

problem

A Problem object.

solution

The raw solver result from solve_via_data().

chain

The SolvingChain from problem_data().

inverse_data

The inverse data list from problem_data().

Details

After calling this function, variable values are available via value() and constraint duals via dual_value().

Value

The problem object (invisibly), with solution unpacked.

See Also

problem_data, solve_via_data


CVXR documentation built on March 6, 2026, 9:10 a.m.