Consider the problem
Minimize $(1/2)\times{x}^{T}\times Q\times x+{P}^{T}\times x$ Subject to $(1/2)\times {x}^{T}\times P\times x+{d}^{T}\times x≤r$ Where Q and P are n×n matrices, P is positive semi-definite, and r is a scalar. I would like to know on how to write down the KKT optimality conditions for the problem