Recently I was using optimization algorithm in order to design a multi parameter optimization, however, I found a quite ridiculous error in using the script as my figure of merit.
Let me take the file in KB as an example,(https://kb.lumerical.com/en/sweeps_optimization.html) , it runs smoothly as just downloaded. The problem occurs when I active the radio button “use figure of merit script”, and added the script “fom=R.T;” , intuitively I thought the script could get the same result as download file, however it never happens.
that’s all I’ve changed from the downloaded file.
when I run the optimization, the FOM value begin at a very low value(much lower than the initial FOM structure) and quickly converge to zero.
Similar error can also be found in our other work (Au_antenna-FOMscript-test - Copy.fsp (977.6 KB)
Could you shed some light on it?