GAMS Homework