Using Inverse Design and Lumopt with cloud computing
I need to optimize a 3D design of grating coupler, and I'm considering the inverse design features.
The model I use requires great computation resources, so in normal simulations I use Lumerical on a cloud service with parallel computing: a single job runs in the cloud 6x faster than on my local computer, and I can run up to 15 jobs in parallel.
Let's say I prepare a python script that given an fsp file it:
- uploads the file to the cloud via ssh
- runs the simulation on the cloud
- once the simulation is finished - downloads the file
With the adjoint method - if in each iteration we call Optimization.run() twice - is there a way to prepare two fsp files, and overload the Optimization.run() command such that we send both of them to the cloud service to run in parallel (for each iteration) using my python script?