pympcc.initial_point_statistics¶
- pympcc.initial_point_statistics(problem)[source]¶
Replicate PATH’s
output_initial_point_statisticsatx0.Reports residuals at the user’s starting point so the user sees the starting state before any work has been done (a complementarity- feasible
x0often dramatically changes solver behaviour).Returns a dict with:
comp_residual— max_i |G_i(x0) · H_i(x0)|.min_map_residual— max_i |min(G_i(x0), H_i(x0))|.max_bound_violation— largest amount anyx0[j]lies outside[xl[j], xu[j]](0 if feasible).ineq_residual— max_j max(g_j(x0), 0) (0 if feasible).eq_residual— max_k |h_k(x0)|.
- Return type:
- Parameters:
problem (MPCCProblem)