Appendix A Coding Optimization Models in GAMS