A system is provided that includes mode, shore power, engine, and battery modules. The mode module determines whether to operate in a shore power, engine, or battery mode based on parameters. The shore power module, while in the shore power mode, runs a compressor at a speed based on a temperature within a container of a vehicle and limits the speed to a first speed. A battery is charged based on utility power while in the shore power mode. The engine module, while in the engine mode, limits the compressor speed to a second speed. The battery, while in the engine mode, is charged based on power received from an alternator/generator. The battery module, while in the battery mode, limits the compressor speed to a third speed. While in the battery mode, the battery is not being charged based on power from a shore power source and the alternator/generator.