Cyclic scheduling with negative delays and resource constraints