SMS: Theory of optimal experiments