Optimization and Sweep
  • Optimization
  • Sweep
  • S-Matrix Sweep

Optimization and Sweep

This section describes optimization and sweeps.

The software allows users to obtain the required information after running numerous related simulations, just by making simple settings.

Switch from the Objects tree to the Optimizations and sweeps, and right-click a blank area on the page. Then you can add the following options:

  • Parameter sweep: Parameter sweep;
  • S-matrix sweep: S-matrix sweep;
  • Optimization: Optimization.

o_s_add_gui.png

Both sweeps and optimization are supported equally in scripts. For more detailed usage instructions, refer to the relevant commands provided in scripts.

Parameter Analysis

Parameter Analysis

First, it is important to understand the parameter types available in the software and identify the specific parameter you want to sweep or optimize. For example, if you intend to optimize materials, you need to define the parameter type as "Material" and select the desired materials for optimization. Similarly, if you want to optimize a specific dimension of the structure, you can set the parameter type to "Length" and adjust this length within a certain range.

Sweep

Sweep:

Sweeps offer users the ability to determine the variation relationship between a specified single variable yy and its dependent variable xx while keeping all other parameters constant. They are typically applied to obtain the best parameters or study the sensitivity of certain parameters. The flowchart below illustrates the sweep process:

parameter_sweeps_sweep.png

The main purpose of sweep analysis is to obtain f(x)f(x).

For details, see Sweep.

Optimization

Optimization: The Particle Swarm Optimization (PSO) is used to perform the entire optimization process, i.e., running a large number of simulations (based on the combination of parameters aa, bb, cc... ) and evaluating the resulting objective functions to identify the optimal combination of (multiple) parameters, expressed as MaxMax. The flowchart below illustrates the optimization process:

optimization_sweeps_optimization.png

For simulated devices, design and performance parameters are among the most important concerns for designers. The performance of a device is typically affected by many correlated parameters. The combination of different parameters with different values may result in different performance.

Optimization algorithms often require the simulation of a large number of projects. Therefore, utilizing Optimization helps to understand the variations of various parameters and their combined impact on an objective function (or performance parameter), which facilitates the proper configuration of optimization parameters.

In addition, it is important to note that the optimization result represents a local optimal solution rather than a global one.

S-matrix Sweep

S-matrix sweep can simultaneously obtain S-parameters of multiple ports and generate an S-matrix to describe input/output characteristics of ports. The core process is illustrated as follows:

optimization_sweeps_s_matrix_sweep.png

Please note that S-matrix sweep must be used in conjunction with Port. Therefore, S-matrix sweep is only available in the FDTD mode.

Setup

Name Description
Name Define the name for a sweep, S-matrix sweep, or optimization.
Active solver Display the solver currently in active. This is a read-only parameter.
Setup Set an independent variable parameter.
Resource Set computing resources and select the Maximum simulation threads of parallel.
Results Set the result parameters for sweep or optimization purposes.

Nested Parameter Sweeps

The software supports nested parameter sweeps and enables post-processing on the swept results. Permutation and combination of all data of multiple parameters will be swept in the nested parameter sweeps, which is different from multiple parameter sweeps.

To add a nested parameter sweep, you can click the Insert parameter sweep or Insert S-Matrix sweep, and then insert an external parameter sweep.

sweep_optimization_instert_sweep.png

When selecting the results for a nested parameter sweep, only the results obtained from the inner sweep may be selected to perform the outer sweep.