pympcc.initial_point_statistics

pympcc.initial_point_statistics(problem)[source]

Replicate PATH’s output_initial_point_statistics at x0.

Reports residuals at the user’s starting point so the user sees the starting state before any work has been done (a complementarity- feasible x0 often dramatically changes solver behaviour).

Returns a dict with:

  • comp_residualmax_i |G_i(x0) · H_i(x0)|.

  • min_map_residualmax_i |min(G_i(x0), H_i(x0))|.

  • max_bound_violation — largest amount any x0[j] lies outside [xl[j], xu[j]] (0 if feasible).

  • ineq_residualmax_j max(g_j(x0), 0) (0 if feasible).

  • eq_residualmax_k |h_k(x0)|.

Return type:

dict[str, Any]

Parameters:

problem (MPCCProblem)