Costs involved
The cost of a rooftop solar PV system depends on the function it serves (to feed power into the grid, to support the load during a power failure, etc.) and incentives/subsidies available.
All solar PV systems function by matching the voltage from some other source. Therefore, the system has to be integrated with the grid, a battery backup, or a diesel generator.