I'm trying to identify an anime I saw on TV 15-20 years ago. It was a mecha anime (maybe one of the Gundams?) with two space empires at war. The "bad" side was led by a female commander, and at the end of the series she and her fleet were defeated. Instead of being killed, she chose to be put into eternal cryo-sleep as her punishment.
I was a kid when I watched this, so the details could be wrong in various places; sorry in advance. I vaguely remember the female commander had green hair, but this might be wrong too.