An optimization method can help detect an impossible gravitational particle