Optimal designs with information theory in least-squares problems