Can we minimize a scalar like x'Ay?

Please read Why isn't CVX accepting my model? READ THIS FIRST! and the book previously recommended to you.

Consider the special case of 1 dimension. Then your function is a*x*y . This is neither convex nor concave as a function of x and y, unless a = 0. You can see that by evaluating its Hessian. Things don’t get any better as the dimension is increased.