I want to caculute the best overlap between silicon waveguide mode and a gaussian beam.
The script were written with the reference of lumerical example.
My scripts are as follows,
However, it displays error “optimizeposition is not a valid function or variable name”.
Thanks for your kind help!