Let $v_i$ be real vectors from $R^D$, for $i=0..N-1$.
How to find a real symmetric positive-definite matrix $\Sigma$ so that
- $v_i^T \Sigma^{-1}v_i \leq 1$ for any $v_i$ and
- $det\ \Sigma$ is minimal?
In human words: How to find a Gaussian ellipsoid having minimal volume so that Mahalanobis distance to any data point is limited by some constant?
That's a very standard so called MAXDET program, for which there are specialized solvers. More generally, it is a semidefinite program. Here is a full example in the MATLAB Toolbox YALMIP (disclaimer, developed by me). It requires a semidefinite programming solver, such as Mosek, SeDuMi, SDPT (which has specialized code for the determinant part)
https://yalmip.github.io/tutorial/maxdetprogramming/