example multiple optima now returns a model