GAMS code