I am trying to calculate the circumcenter of a tetrahedron in 4 dimensional space. Basically what I am looking for is the center of the smallest sphere which passes through all 4 vertices of the tetrahedron. I have searched online but can't seem to find any specific formula for this. My overall aim is to find the circumcenter and check if any other point within a given data set lies within the sphere constructed around the vertices of the tetrahedron. Similar to how the Delaunay triangulation works. Note that the tetrahedron can be a regular tetrahedron and also an irregular tetrahedron.
Currently I am using a custom optimization function which uses a GA to locate a point which is equidistant from all 4 vertices. However, this doesn't always find the smallest enclosing sphere. I was hoping for some concrete mathematical formula which can make this calculation more accurate.