extract_dual_value function

Gets a specified value of a dual variable.

Gets a specified value of a dual variable.

extract_dual_value(result_vec, offset, constraint)

Arguments

  • result_vec: A vector containing the dual variable values.
  • offset: An offset to get correct index of dual values.
  • constraint: A list of the constraints in the problem.

Returns

A list of a dual variable value and its offset.

  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07