Makes an optimization