pympcc.active_sets

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

Partition constraint indices into active subsets at result.x.

Returns a dict with the integer index arrays:

  • I_g — active inequality rows (g_j(x*) -tol)

  • I_G — comp pairs with G_i(x*) tol

  • I_H — comp pairs with H_i(x*) tol

  • I_00 — biactive pairs I_G I_H

  • I_xL — variables at active lower bound (x_j xl_j)

  • I_xU — variables at active upper bound (x_j xu_j)

Return type:

dict[str, ndarray]

Parameters: