To regain your imaginative edge:
Disrupt your daily habits. Commute to work a different way. Redecorate your office. "Borrow" an unused workspace. Changing your environment can sharpen your sensory perceptions and spark creativity.
Give up. Devote a few days to not thinking about the problem. Temporarily setting aside your creative challenge can help relieve pressure so that you revisit the issue later with renewed vigor.
Pretend it's a year later. Look back on all your output. By looking at the big picture, you'll realize that your creativity ebbs and flows naturally. And you'll be less apt to magnify slumps and blow them out of proportion.