The Mathematical Programming Approach to Applied General Equilibrium Modelling: Notes and Problems