You need to combine the elements of your vector into a single target cell.
Assuming the vector starts at 0 and ends at the vector coordinates (u,v,w,x,y,z), and further assuming your objective is to minimize the length of the vector, you could generate a new cell with the length:
L = sqrt(u^2+v^2+w^2+x^2+y^2+z^2)
...and use this L for your minimization.
Note the sqrt makes it easier to understand but is unnecessary. Minimizing the sum of squares also minimizes the square root of sum of squares.
=====================================
Eng-tips forums: The best place on the web for engineering discussions.