There’s a few posts above on this topic:
But indeed, it would be nice to have this exposed for scripting in either the KangarooSolver.dll or RhinoCommon.
KangarooSolver.dll