Zaslat SMS: Theory of optimal experiments