Describir: Optimal control of a SIR epidemic model with general incidence function and a time delays