Project a vector elementwise into a constrained region
project(x, xmin, xmax)
x
Vector
xmin
Vector of lower bounds
xmax
Vector of upper bounds
Vector of closest values to x which satisfy the bounds