I'm not using spoilers because this problem is not a puzzle with a known answer.
I checked your answer and for your V=(1,1,1,1,-1,-1,-1,-1), I also compute Q(V) to be 6898.
Notice that, because of the absolute value in the function Q, Q(V)=Q(-V). So, Q(V)=6898
for V=(-1,-1,-1,-1,1,1,1,1) as well. Will you give a short description of what your program
does? Is there a lot of guessing? Is a genetic algorithm involved? Did you use one of the
methods (like the Simplex Algorithm) to optimize Q(V)? Also, do you have any clue as to
why the V you got is so pretty? Perhaps it's a property of Pi itself. I hope we can get
even better answers than the pretty one you found.