Hi again Neha,
If you wanted to stay in Sequential Mode, I think you would need to use something like Geometric Image Analysis and modify the spacing of the field points to simulate 'optimizing' the spacing/arranging of the diodes. That said, I think the most intuitive and straightforward way to perform this optimization may actually be using Non-Sequential Mode. I say this because you'll have direct control over the near- and far-field distribution of your sources (depending on the Source Objects you select), and you will have much more control of where they can be placed. In Sequential Mode, if we define different field points, one of the main assumptions is that each field point will have a distinct landing coordinate for things like the chief ray on the image plane, particularly if this is meant to be a 'focusing' system.
So, if you use different field points to simulate multiple diodes, but then attempt to focus them all at the same point on the image plane, I think OpticStudio will have some difficulty in performing some of its computations. This would not be an issue in Non-Sequential Mode, though, since the ray trace does not make the same assumptions.
For more information on defining an array of sources in NSC Mode, you can take a look at this Knowledgebase article here. Though it details the setup, once the array has been created, you can place Detector objects where you'd like within your system to monitor your desired performance metrics.
Please let us know if you have any more questions here!
~ Angel