optimize: Fix bug in LinearUnivariateExample