Added gridpoints option to constraints