Consider the following quadratic programming problem
$$ \min\limits_{x \in S} f(x) = c^{\text{T}}x + \frac{1}{2}x^{\text{T}}Qx, $$ where $S \subseteq \mathbb{R}^n$ is a convex compact set, $Q$ is an $n \times n$ symmetic matrix and $c \in \mathbb{R}^n$. Suppose $x^*$ is the global solution of the above problem. I have found without proof that $x^*$ is also optimal for the linear program $\min\limits_{x \in S} \nabla f(x^*)^{\text{T}}x$? Can someone please provide a proof? What is the intuition behind this result?
I will use following theorem:
If $x^*$ is optimal for the quadratic problem, then $(c + Q x^*)^Td \leq 0$ for all feasible directions $d$ at $x^*$. For the linear problem, a solution $\bar{x}$ is optimal if $(c + Q x^*)^Td \leq 0$ for all feasible directions $d$ at $\bar{x}$, and it is clear that $\bar{x}=x^*$ satisfies this condition.