An example of the optimisation step in the VI method.