Optimization of sum of two quadratic over linear function

I’m computer science student. Iam looking for some helps concerning the resolution of an optimization problem.
I have an optimization problem defined on two sets \mathcal{X}=\{x_i\}_{i=1}^n and \mathcal{Y}=\{y_j\}_{j=1}^m and described as follows

\begin{aligned} & \underset{\alpha, \beta}{\text{max}} & & \sum_{i=1}^n \alpha_i x_i^T x_i-\frac{\sum_{i=1}^n \sum_{j=1}^n \alpha_i x_i^Tx_j \alpha_j}{\sum_{i=1}^n \alpha_i}+\sum_{k=1}^m \beta_k y_k^T y_k-\frac{\sum_{k=1}^m \sum_{l=1}^m \beta_k y_k^Ty_l \beta_l}{\sum_{j=1}^m \beta_j }\\ & \text{subject to} & & 0 \leq \alpha \leq C1 \\ & & & 0 \leq \beta \leq C2 \\ \end{aligned}

diag(X)'*alpha - quad_over_lin(sqrtm(X)*alpha,sum(alpha)) - diag(Y)'*beta - quad_over_lin(sqrtm(Y)*beta,sum(beta)