A machine includes an electrical power source, which may include a
mechanical power source and an electric generator drivingly connected to
the mechanical power source. The machine may also include one or more
power loads connected to the electric generator. Additionally, the
machine may include power-supply controls, which may be configured to
execute a control method. The control method may include receiving inputs
relating to conditions of operation of the machine. Additionally, the
control method may include controlling the speed at which the mechanical
power source drives the electric generator, and the power consumption of
one or more of the power loads connected to the electric generator,
interdependently.