A mathematical model for periodic scheduling problems