Extremal Problems on the Set of Nonnegative Definite Matrices