I'm looking for an algorithm to find the smallest ellipse circumscribed around any polygon. It doesn't matter if the polygon is convex or concave, or how many corners it has. What counts is that it's a set of points (extremes) and its surface is continuous. Imagine a city of an irregular shape that we want to surround with the smallest ellipse possible.