Mathematical programming methods for deformation analysis at plastic collapse