Optimizing power grid synchronization through convex optimization provides insights into stable states and error bounds.