Optimization and control of virus-host systems