Setting inverter DC/AC ratio