Learn R Programming

CVXR (version 1.9.1)

problem_unpack_results: 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)

Value

The problem object (invisibly), with solution unpacked.

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().

See Also

problem_data, solve_via_data