Scheduing with state-dependent machine speed