Generally it is easier to keep the solar inverter close to the solar panels and have a longer length of ac cable to the grid connection.
Distance between solar panels and inverter.
The distance between the solar pv panels and the solar power inverter is 15 meters.
But 500 feet is around 160 meters so with 3 phase power and a 20 kilowatt inverter the cable from the inverter to the grid connection would need a cross section of about 50 square millimeters to keep voltage rise to under 1.
The shorter the better.
Power optimizers can be thought of as a compromise between string inverters and microinverters.
Like microinverters power optimizers are located on the roof next to or integrated with individual solar panels.
The ohmic resistance is.
As a result the total cable length in where the direct current flows is 30 meters outgoing and incoming cable.
I would guess the cable distance between panels and inverter would be 15 meters.
But if the panels are wired in series which increases the voltage much longer wire runs can be done.
A panel located option to pair with a string inverter.