I think that any assignment assigned during the summer is optional, because you're not in school during that time frame, however it may be in your best interest to do the assignment, for the well-being or improvement of your grades. It might be optional, but I would definitely recommend you do it.