Optimization of Sampling Control