pympcc.active_row_labels

pympcc.active_row_labels(result, problem, *, active_tol=1e-06)[source]

Return active-row labels in the order sensitivity() expects dc_dp.

Useful for assembling the dc_dp matrix without first calling sensitivity().

Parameters:
  • result (MPCCResult, MPCCProblem) – Solved result and its source problem.

  • problem (MPCCResult, MPCCProblem) – Solved result and its source problem.

  • active_tol (float) – Constraint tolerance for active-set detection (default 1e-6).

Returns:

Per-row labels. See SensitivityResult.active_row_labels.

Return type:

list of (str, int)