Well, just out of curiosty compare how long would it take to remake the constraints form scratch versus how long youve spendt working on the problem. If the time it takes to do it form scratch is longer then the time you spent on not trying to do by hand then your misusing time.
Sometimes problems do not have easy, just automate it, solutions. Then its easier to make then solving the problem by hand. For example im now working on a code thats sytematically not doing whats its supposed to do. So the entire base code is 100 lines long but theres 2000 lines worth of exeptions coded into the frigging thing. So its nolonger really doing what its supposed in my mind.