Optimal Design of Control Systems