optimisation and tex