Skip to contents

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

Value

The problem object (invisibly), with solution unpacked.

Details

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