A generator set, often referred to as a genset, is a compact and self-contained power generation unit designed to provide electrical power when the main power supply is unavailable or unreliable. It typically consists of an internal combustion engine, such as diesel, gasoline, or natural gas, coupled with an alternator that generates electricity.