I am considering an optimization problem of the form: \begin{equation} \begin{split} f(s) &= \min_{X} \mathrm{tr}(C(s)X) \\ &\;\;\;\;\;\;\;\;\;\;\; X \ge 0, \\ &\;\;\;\;\;\;\;\;\;\;\; \mathrm{tr}(A_iX) = a_i, \;\; 1 \le i \le M, \end{split} \end{equation} where the minimization is over $n\times n$ Hermitian matrices $X$. Further, $A_i$ for $1 \le i \le M$ denote some $n\times n$ Hermitian matrices which together with $a_i \in \mathbb{R}$ determine linear constraints on $X$. Finally, the matrix-valued function $C(s)$ is of the block form: \begin{equation} C(s) = \left( \begin{array}{cc} C_{1}(s) & 0 \\ 0 & 0\end{array} \right), \end{equation} where the upper left block $C_1(s)$ is of size $(n_1 + 1) \times (n_1 + 1)$ for some $n_1 < n$, and is given by: \begin{equation} C_1(s) = \left( \begin{array}{ccccc} I_{n_1\times n_1} & -ic \mathbb{I}_{n_1\times n_1} & \cdot & \cdot \\ i c \mathbb{I}_{n_1\times n_1} & \cdot & -i \frac{s}{2} \mathbb{I}_{n_1\times n_1} & \cdot \\ \cdot & i \frac{s}{2} \mathbb{I}_{n_1\times n_1} & \cdot & \cdot \\ \cdot & \cdot & \cdot & s^2\end{array} \right). \end{equation} Here, $c \in \mathbb{R}$, $I_{n_1\times n_1}$ is the $n_1 \times n_1$ matrix of ones and $\mathbb{I}_{n_1\times n_1}$ denotes the $n_1 \times n_1$ identity matrix (whereas all entries indicated by $\cdot$ vanish).
Can it be shown that $f(s)$ is convex?
If not, which further requirements has the optimization to fulfill in order to guarantee convexity of $f(s)$?