VPHGs can be classified in various ways based on their structural and physical properties. Based on their modulation effect on incident light, they are categorized into amplitude-type and phase-type gratings. Based on the recording geometry, they can be categorized as transmission-type or reflection-type. Additionally, based on the fringe slant angle, they are classified as slanted-fringe or non-slanted-fringe types [
33]. Theoretically, phase-type VPHGs can achieve diffraction efficiencies approaching 100%. By comparing the theoretical diffraction performance and fabrication tolerances of various grating types, it is observed that transmission-type VPHGs exhibit wide spectral bandwidth but narrow angular bandwidth. In contrast, reflection-type VPHGs exhibit superior angular selectivity but strong wavelength selectivity, making it challenging to cover the required spectral range for detection. Furthermore, during thermal expansion and contraction, reflection-type VPHGs may experience non-uniform fringe spacing along the thickness direction. For slanted-fringe VPHGs, the central wavelength of peak performance shifts; however, the spectral bandwidth, angular bandwidth, and peak diffraction efficiency remain essentially unchanged. Additionally, precise control of the fringe slant angle during thermal expansion and contraction processes is challenging. Therefore, this study focuses on non-slanted fringe transmission-type VPHGs, whose theoretical performance satisfies the requirements for CO
2 detection. Furthermore, the fabrication process conditions and grating parameters for gratings are relatively controllable.
3.1. Multi-Objective Simulated Annealing Method for VPHG Design
The development of VPHGs can be divided into design and fabrication stages. Traditional VPHG design methods simulate the effects of varying grating parameters on diffraction performance using diffraction theory. By iteratively adjusting these parameters, an optimal design is sought; this approach is known as “forward grating design”. However, this method suffers from slow convergence, low computational efficiency, and does not guarantee globally optimal solutions. For VPHGs in CO2 detection applications, the theoretical design must meet stringent requirements to enable the spectrometer to achieve high spectral resolution, high signal-to-noise ratio, and high operational efficiency. This necessitates that the VPHG simultaneously possess excellent dispersion capability, high diffraction efficiency, low polarization sensitivity, and a spectral bandwidth covering the CO2 absorption peaks. However, traditional design methods struggle to simultaneously optimize diffraction efficiency, spectral bandwidth, polarization sensitivity, and other performance parameters, making it difficult to meet application requirements across all diffraction characteristics. Therefore, to address the challenges in designing transmission-type VPHGs with high dispersion capability in the short-wave infrared region, this study proposes a design method based on Kogelnik’s coupled-wave theory combined with a multi-objective simulated annealing algorithm. Grounded in the concept of “inverse grating design”, this method delivers accurate computational results with high efficiency and enables the balanced optimization of multiple diffraction performance parameters.
The design of VPHGs represents a combinatorial optimization problem characterized by a rapidly expanding search space. Consequently, finding the optimal design through exhaustive enumeration becomes computationally infeasible, necessitating the incorporation of metaheuristic optimization algorithms in the design process [
34]. Metaheuristic algorithms are commonly employed to address such combinatorial problems. After comparing various optimization methods, this study ultimately selected simulated annealing as the optimization tool [
35]. Inspired by the metallurgical annealing process, simulated annealing avoids local optima by probabilistically accepting inferior solutions. Although its computational implementation is relatively straightforward, the slow convergence issue can be mitigated by tuning annealing parameters and algorithmic settings, enabling faster identification of the global optimum among multiple local optima. Since simultaneous optimization of multiple diffraction performance parameters is required in grating design, this study extends the optimization algorithm using a multi-objective fitness function approach to accommodate the specific requirements of VPHG design [
36]. By designing appropriate fitness functions that balance the relationships among multiple objective functions, multi-objective optimization is effectively transformed into an approximate single-objective optimization problem.
The optimization process of the algorithm is illustrated in
Figure 4 and essentially consists of a nested two-level loop structure. The outer loop controls the temperature, which decreases gradually from high to low, while the inner loop maintains a fixed temperature and performs multiple iterations to search for optimal solutions. During optimization, annealing parameters and optimization variables are first specified [
37]. An initial parameter set is randomly generated within the variable range, and its fitness value is calculated based on the defined fitness function. This parameter set and its corresponding fitness value are designated as the initial optimal solution. Subsequently, at the initial temperature, the algorithm enters the Markov chain iteration phase. A new solution is randomly generated, and its fitness value is calculated. By comparing it with the current optimal solution, either an improvement is accepted or a worse solution is probabilistically accepted, and the new solution is set as the updated optimal solution. When the maximum number of iterations is reached, the iteration at the current temperature terminates. The temperature is then decreased to proceed with the next cycle. This process continues until the temperature falls below the predefined cutoff value, at which point the algorithm terminates and outputs the optimal design solution.
For VPHGs applied in CO2 detection spectrometers, the detection spectral range corresponds to the gas’ infrared absorption spectrum. This study selects a wavelength range of 1.620–1.650 μm with a central wavelength of 1.635 μm. Furthermore, studies have demonstrated that a spectral resolution of 0.1 nm for the detection payload enables high-precision gas concentration retrieval, which imposes specific requirements on the detector and focusing lens parameters within the spectral imaging system. Commonly employed detector pixel sizes range from 15 to 35 μm, while the focal length of the imaging lens typically ranges from 100 to 300 mm. According to calculations, the Bragg angle and grating period for the grating design range from 22.23° to 67.82° and 0.5809 μm to 1.4214 μm, respectively. Additional grating design parameters include grating thickness and refractive index modulation depth, whose ranges must be determined based on the diffraction characteristics of the VPHG and practical fabrication constraints. Due to limitations in experimental fabrication capabilities, the maximum refractive index modulation depth is set to 0.06, with an optimization range of 0.01–0.06. Considering that excessive grating thickness increases material absorption, the thickness range is selected as 1–80 μm. The above parameter ranges define the variable search space for grating design. VPHGs designed within these ranges can satisfy the application requirements for detection, serving as the variable space for algorithmic optimization.
When developing the optimization program, it is necessary to consider the specific settings of the annealing algorithm, including annealing parameters, optimization variable settings, methods for generating initial and new solutions, and the definition of the multi-objective fitness function. The parameters of the simulated annealing algorithm include the initial temperature (T0), termination temperature (Tmin), annealing rate (r), and Markov chain length (L). These parameters significantly affect the algorithm’s convergence and computational efficiency. Additionally, the initial temperature affects the probability of escaping local optima. Considering these factors, the values are set as T0 = 1000 °C, Tmin = 0.0001 °C, r = 0.985, and L = 800. The grating design parameters include grating thickness, refractive index modulation depth, grating period, and Bragg angle. However, since the grating period and Bragg angle are strongly correlated and can be calculated using Equation (2), only three independent optimization variables remain in the final design. The initial solution is obtained by adding the product of the variable ranges and random numbers to the lower bounds, ensuring the result lies within the variable ranges. When generating new solutions, perturbations are applied in the vicinity of the current solution, with the perturbation magnitude dependent on the current temperature and constrained within the optimization variable bounds.
The optimization objective of this study is to design a high-performance VPHG for CO
2 detection applications. Therefore, the fitness function is defined based on specific diffraction performance requirements. For gratings used in CO
2 detection, high diffraction efficiency, adequate bandwidth covering the spectral range requirements, and low polarization sensitivity are essential. Accordingly, these performance criteria are incorporated as constraints within the fitness function to achieve a global optimum. Specifically, diffraction efficiency and bandwidth calculation formulas derived from Kogelnik’s coupled-wave theory are used. High diffraction efficiency is ensured by constraining the diffraction efficiency at the central wavelength and at the spectral range’s edge wavelengths under different polarization incidence conditions. Broadband performance is achieved by constraining diffraction efficiency and spectral bandwidth at the edge wavelengths. Polarization insensitivity is achieved by constraining polarization sensitivity at three strategically selected wavelengths. The combination of the above constraints forms the fitness function F, defined as follows:
Here,
represents the fitness function;
and
constrain the diffraction efficiency at the central wavelength;
and
constrain the diffraction efficiency at the 1.620 μm edge wavelength;
and
constrain the diffraction efficiency at the 1.650 μm edge wavelength;
constrains the spectral bandwidth; and
,
, and
constrain the polarization sensitivity. The coefficients
through
represent the weights assigned to each optimization objective, which sum to unity. Detailed weight values are provided in
Table 1. The simulated annealing algorithm’s ability to escape local optima primarily relies on the Metropolis acceptance criterion. According to this criterion, a worse solution is accepted with probability
when
exceeds a randomly generated number between 0 and 1, enabling global optimization. At high temperatures, the algorithm permits acceptance of larger deteriorations in the fitness function, whereas at low temperatures, only minor deteriorations are accepted. This necessitates that the ratio between the maximum fitness function difference and the initial temperature should not be too large, otherwise, insufficient acceptance of worse solutions may hinder convergence and cause the algorithm to get trapped in local optima. Calculations show that the maximum difference in the fitness function
is 4.29, and with an initial temperature of 1000, the acceptance criterion is satisfied.
3.2. Performance Analysis and Comparison of VPHGs
Using the proposed multi-objective simulated annealing design method, a VPHG suitable for CO
2 detection applications was successfully designed. The optimized design results are presented in
Table 2. The multi-objective fitness function converged to an optimal value of 0.6125. The corresponding optimal grating parameters are: a thickness of 32 μm, a refractive index modulation of 0.06, a Bragg angle of 35.002°, and a grating period of 0.9376 μm.
Based on the VPHG design results, the grating’s diffraction performance can be theoretically analyzed. This study focuses on several key aspects of VPHG performance: wavelength and angular selectivity under TE and TM polarization, polarization sensitivity, wavelength selectivity under unpolarized light, and the full width at half maximum (FWHM) spectral bandwidth under different polarization states. Polarization sensitivity is defined as the absolute difference in diffraction efficiency between TE and TM polarizations at the same wavelength of incidence. The diffraction efficiency for unpolarized light is defined as the average of the efficiencies under TE and TM polarization. The corresponding mathematical definitions are as follows:
Here,
denotes the polarization sensitivity,
is the diffraction efficiency for unpolarized light,
is the diffraction efficiency under
wave incidence, and
is the diffraction efficiency under
wave incidence.
Figure 5 presents the calculated diffraction performance of the grating designed using the multi-objective simulated annealing algorithm. The simulation results are based on Kogelnik’s coupled-wave theory. The results demonstrate that the designed VPHG achieves a diffraction efficiency exceeding 95.35% under TE polarization across the spectral range, with a full angular width at half maximum (FAWHM) of 3°. Under TM polarization, the diffraction efficiency exceeds 82.21%, with an FAWHM of 1.3°. The polarization sensitivity remains below 6.57%, and the diffraction efficiency for unpolarized light exceeds 88.78% across the target spectral range, demonstrating excellent overall performance.
Figure 6 illustrates the simulated spectral bandwidth characteristics of the designed grating. Under TE polarization, the full width at half maximum (FWHM) spectral bandwidth reaches 122 nm, while under TM polarization, the FWHM reaches 54 nm.
To further validate the advantages of the proposed design method, a comparative analysis was conducted by designing a short-wave infrared VPHG under identical application conditions and performance requirements using VirtualLab Fusion 2021—a commercially available optical design platform. In this software, diffraction performance is calculated primarily using RCWA and optimization is performed using a conventional single-objective simulated annealing algorithm. The resulting grating parameters include a grating period of 1.0141 μm, a Bragg angle of 32.03°, a grating thickness of 20.615 μm, a refractive index modulation of 0.0336, and an average refractive index of 1.52. Based on these parameters, diffraction performance analysis was conducted, with results shown in
Figure 7. The VirtualLab-designed VPHG exhibits a TE-polarization diffraction efficiency exceeding 94.6% across the spectral range, with a peak efficiency of 100%. However, the diffraction efficiency for TM polarization drops to 34.58% at the spectral edge, with a peak value of only 40.3%. The maximum polarization sensitivity reaches 29%, and the diffraction efficiency under unpolarized light remains above 65.6%, indicating that the overall diffraction performance does not meet the stringent requirements for CO
2 detection applications. In contrast, the proposed multi-objective simulated annealing method enables balanced optimization of diffraction efficiency, spectral bandwidth, and polarization sensitivity simultaneously. This method enables application-specific design and overcomes the performance limitations of conventional single-objective approaches. It significantly improves computational performance, achieving approximately 80% reduction in design time compared to conventional methods. Furthermore, it exhibits superior convergence behavior, enabling rapid and stable identification of the global optimum. The strong robustness of this method effectively prevents convergence to local optima in high-dimensional design spaces, offering a practical solution for VPHG designs with demanding multidimensional performance requirements. It also provides valuable theoretical guidance for VPHG fabrication.