Statistical optimization for geometric computation : theory and practice