Optimal Control Applied To Population And Disease Models