What are the optimization variables? If all of x,y1,y2,p,q are optimization variables, that is neither convex nor concave. Perhaps your calculations are erroneous.
Edit: @LeoTree See @jackfsuia 's and my posts below for an important “clarification” to this post.