Adaptive power management for cyber-physical system