Optimal control problem in an epidemic disease SIS model with stages and delays