Power-supply system design