1. Introduction
Injection molding, characterized by short cycle times and a net-shape manufacturing capability, is a cost-effective method for producing both optical prototypes and final products. The injection molding process encompasses several stages, ranging from material selection and the mechanical fabrication of the mold to the production of consumer-ready optical devices such as smartphone cameras, gaming equipment, audiovisual gear, and contact lenses [
1,
2,
3].
The choice of feedstock material depends on many factors, including the application requirements; the mechanical, thermal, and chemical properties; the aesthetic requirements; the cost; and the availability. Common injection molding materials include, but are not restricted to, acrylonitrile butadiene styrene (ABS), polypropylene, polyethylene, and polymethyl methacrylate (PMMA). The mold design phase considers the required functionality, dimensions, geometry (e.g., planar, curved, symmetrical, or asymmetrical), roughness specifications, and surface quality of the final product. The molding process begins with feeding plastic pellets into a hopper, where they are subsequently transferred to a plasticizing screw. As the screw rotates, the pellets are mixed and melted by external heating elements and conveyed to the runner and gate system. Under high pressure and controlled velocity and temperature conditions, the molten plastic is injected into the mold cavity, where it fills the mold and is then further compressed in a packing process. Once the molten resin has been compacted, the component is allowed to cool slightly in the mold. The ejector system then extends, causing the component to be ejected from the mold and to cool gradually to room temperature. After the component has been ejected, the mold closes again to commence the next production cycle [
4,
5]. The main steps in the molding process are illustrated in
Figure 1. Injection molding offers the potential to produce parts with an exceptionally high surface finish and tight dimensional tolerances. However, to achieve this level of quality, the process parameters, such as the injection speed, mold temperature, cooling time, packing pressure, and melt temperature, must be carefully specified during the design stage and precisely controlled during production.
With its ability to mass produce plastic components of intricate shapes with high precision and reproducibility, injection molding is widely used in the optics field to fabricate lenses, light guides, prisms, diffusers, and many other optical components. Many studies have demonstrated the feasibility of injection molding for the high-volume production of Zernike freeform optical elements. Such surfaces find many applications, including wavefront aberration correction, ophthalmology, image analysis, and astronomy [
6,
7,
8].
One particularly interesting application of injection-molded freeform optics is the Alvarez lens, which is typically produced using polymethyl methacrylate (PMMA). The geometric design of Alvarez lens systems comprises two Alvarez lenses arranged in series. The resulting combination behaves as a spherical lens that utilizes lateral movements of the two elements to vary the optical power. Such functionality is achieved by creating optical thickness profiles with complementary phase plates, as illustrated in
Figure 2 [
9].
As shown in
Figure 3, the optical elements in Alvarez lens systems display complementary cubic phase profiles. Consequently, even very small lateral displacements of the lenses relative to one another are sufficient to generate significant changes in the focus. In contrast, traditional zoom systems, which require at least two lenses, operate by changing the separation distance between the lenses to adjust the focal length and back focal distance. More complex zoom systems involve multiple lens groups that move independently while maintaining a fixed image plane. However, these lens systems typically rely on mechanical cam mechanisms and are prone to failure or jamming after prolonged use [
10].
In Alvarez lens systems, the distance between the lenses remains fixed. Consequently, they excel in applications requiring compactness, reliability, and continuous zooming capabilities while avoiding the mechanical complexity and environmental limitations of conventional zoom lens systems. Generally, the elements in Alvarez lens systems are refractive. Using refractive optical elements avoids issues such as diffraction efficiency, chromatic aberration, and polarization sensitivity associated with liquid-crystal components.
Recent advancements have made possible the fabrication of adaptive focusing lenses based on liquid crystal and spatial light modulators, which offer non-mechanical zoom capabilities. These systems eliminate the need for multiple components and achieve variable focal lengths by altering the refractive index, thereby avoiding the requirement for mechanical movement. However, current technological constraints limit the achievable magnification range. Other challenges include power consumption, diffraction efficiency, chromatic aberration, and polarization effects [
11,
12]. As a result, there is a strong interest in the design and application of Alvarez lens systems.
In practice, the optical performance of Alvarez lenses depends on both the geometric design of the lens and the quality of the molded component. Consequently, an integrated consideration of the lens design and injection molding process is required. To meet this need, this study optimizes the design and fabrication of an injection-molded Alvarez freeform lens using CODE V (2023.03) optical design simulations (see the optical system combinations in
Figure 4) and Moldex3D (2022.R4OR) mold flow analyses (see the grid and mesh for simulation of the gate and runner system in
Figure 5). The optical quality of the designed lens is evaluated using the spot diagram, distortion, and modulation transfer function (MTF) methods. The optimization process commences by using the Taguchi methodology to identify the individual effects of the key injection molding parameters (e.g., the material type, mold temperature, filling time, and pressure) on the quality of the fabricated lens. Two multi-objective optimization methods, namely Gray Relational Analysis (GRA) and Robust Multi-Criteria Optimization (RMCO), are then separately employed to determine the optimal combination of the molding parameters. Finally, the optimization performance of the two methods is evaluated and compared [
13]. The overall research framework is illustrated in
Figure 6.
2. Mold Flow Analysis: Warpage, Stress, and Multiple Regression
As shown in
Figure 6, the simulation process commenced by performing a preliminary mold flow analysis (MFA) of the initial lens design under default settings of the injection molding parameters. The resulting deformed geometry information and residual stress data at the discrete mesh coordinates were converted into continuous functions using multiple regression equations. Optical analyses were then conducted to evaluate the quality of the lens in terms of the spot diagram, distortion, and modulation transfer function (MTF) simulations. The geometry design of the lens was adjusted, if necessary, and the MFA and optical analysis tasks were repeated. The process continued iteratively in this way until the optical performance satisfied the specified quality requirements. The details of the integrated simulation procedure are described in the following subsections.
2.1. Mold Flow Analysis
Mold flow analysis (MFA) is a numerical simulation technique used to predict the flow of a polymer melt within a mold cavity. The numerical models used in MFA are founded on a continuum assumption, which treats the molten polymer as a continuous medium. In the present study, the three-dimensional transient flow fields during the polymer injection and mold filling stages were computed using the High-Performance Finite Volume Method (HPFVM). In the packing pressure phase, the Finite Element Method (FEM) and Finite Difference Method (FDM) were used to calculate the residual stress and temperature gradient in the in-plane and through-thickness directions, respectively.
Mold flow simulations rely on the construction of effective mesh structures consisting of interconnected nodes and edges. Optimal mesh generation ensures precise numerical analysis and improves the convergence. This study employed Rhinoceros 5.0 as the primary modeling platform for constructing geometric models of the Alvarez lens elements and Moldex3D-IM (2022.R4OR) as the main simulation module. When building the mold surface elements in Rhinoceros 5.0, it is essential that the coordinate dimensions of these elements adhere to the nominal CAD model of the Alverez lens. Furthermore, the primary analysis engine in Moldex3D (2022.R4OR) is based on a finite element model, which requires perfect nodal connectivity between adjacent elements to ensure accurate results. Thus, local mesh adjustments were performed as necessary to address geometric discrepancies or abrupt changes in order to enhance the quality of mesh processing and the reliability of the simulation outcomes [
14,
15,
16,
17,
18,
19].
2.2. Molding Materials and Geometry Mesh
The MFA simulations considered two types of PMMA from the CHI-MEI ACRYREX series as the lens material: CM 205 and CM 211. Both materials are known for their favorable light transmission properties and were selected from the internal material library of the Moldex3D (2022.R4OR) software (see
Table 1). The primary research target of the MFA model was the first Alvarez lens element in
Figure 4. The lens was modeled using the Moldex3D (2022.R4OR) mesh generator, with a 0.025 mm grid size for the component and a 0.2 mm grid size for the runner mesh. The runner included a fan-shaped gate and a cold-slug well. The lens was meshed using hexahedral elements, while the runner and gate were meshed using tetrahedral elements. The mesh details are shown in
Figure 5.
The deformed surface mesh output from the MFA simulations was fitted to a smooth surface to ensure that the subsequent optical ray-tracing simulations were not impaired by non-smooth transitions at the mesh boundaries. A convergence analysis was conducted on the mesh size used in the numerical analysis. It was found that as the value of the hardness parameter decreased, the differences between the node distances also decreased. The maximum and average displacements both converged at a hardness of 0.1. Using excessively low hardness may cause overfitting issues outside the sampled points. Consequently, the hardness parameter was set at 0.1 in the MFA simulations to characterize the deformation features introduced during manufacturing (see
Table 2).
2.3. Warpage and Residual Stress
During the injection molding process, local differences in the part thickness, geometry, and material properties lead to non-uniform cooling rates. This results in uneven shrinkage effects that cause warpage and deformation of the final product. While the stress within the molded part reduces during the packing and compression phases within the mold, a certain amount of residual stress inevitably remains after it is ejected from the mold and cools to room temperature. Previous studies have shown that the magnitude of this residual stress is affected by many factors, including the gate design, viscous flow behavior, molding conditions, free shrinkage, stress-induced deformation, temperature gradient, and material characteristics. For plastic lenses, the residual stress impacts both the mechanical and optical performance of the lens [
20,
21]. Among the various factors influencing the intensity of the residual stress, the molding conditions are particularly dominant. Thus, the molding process parameters must be carefully selected and controlled to minimize or mitigate these effects, or at the very least, make them predictable so that they can be factored into the original lens design [
22].
2.4. Stress and Refractive Index
The change in optical properties of a material in response to internal stress can be described using the stress–optical relationship. The change in the light polarization properties of the material is manifested by a birefringence effect, with the result that the residual stress can be evaluated using a stress viewer technique [
23,
24]. In the present MFA simulations, the computed residual stress data were used in conjunction with the stress–optical law to estimate the distribution of the refractive index variations in accordance with
where
n1,
n2, and
n3 are the refractive indices corresponding to the principal stress directions; n
0 is the refractive index of the material (CM 205 or CM 211) in its unloaded state; σ
1, σ
2, and σ
3 are the principal stresses; and c
1 and c
2 are the stress–optical coefficients.
2.5. Multiple Regression
As described at the beginning of
Section 2, the deformed geometry information and residual stress data obtained from the MFA simulations at the discrete mesh coordinates were converted into continuous functions using multiple regression (MR) equations. Optical analyses were then conducted to evaluate the quality of the lens in terms of the spot diagram, distortion, and MTF. The details of the conversion process are described below.
The Finite Element Analysis (FEA) results from the Moldex3D (2022.R4OR) simulations were output as two discretized data files: an (.OPTIC) file containing node and refractive index information and a (.CDB) file containing node and coordinate information. These files, once integrated, yielded discrete refractive index data at specific node coordinates. However, discrete geometric data and refractive index distributions are unsuitable for optical analysis simulations, which require continuous, smooth geometric features and globally defined refractive index functions. Accordingly, MR calculations were employed to convert the discrete geometric and refractive index data into functional representations. Using C programming (CODE V-2023.03) and nmake.exe (Windows Prompt-Visual Studio), the relevant data were transformed into a CODE V(2023.03)-readable (.DLL) file. The necessary files for CODE V(2023.03) optical analysis, including the CAD files, DLL files, and coefficient files derived from the MR process, were then imported into CODE V(2023.03) to evaluate the quality of the molded lens in terms of the three quality measures indicated above.
In general, MR equations can be expressed as y = θ
0 + x
1β
1 + x
2β
2 + x
3β
3 + …, where y is the dependent variable, x
i are the independent variables, and β
i are coefficients. Typically, the parameter matrix β is obtained through matrix operations such as pseudo-inverse regression (PR). The MR fitting process performed in this study was implemented using Ahmet Cecen’s MultiPolyRegress function in MATLAB (R2023b) Central [
25,
26,
27]. Briefly, the refractive index values at the coordinate points were computed using the extracted Moldex3D (2022.R4OR) FEA data and optical analysis files and were then converted into MR equations using the MultiPolyRegress function. The resulting polynomial equations described the refractive index field as a function of n(x, y, z).
However, CODE V(2023.03) does not natively support 3D gradient refractive index polynomials. Thus, dynamic link libraries (DLLs) were employed to implement the polynomial functions and their partial derivatives in the three spatial directions. The coefficients derived from the regression analysis were reformatted to serve as inputs for the custom DLLs. Following the user manual, the C code defining the refractive index function n(x, y, z) was compiled using Visual Studio’s command-line tool (NMAKE.EXE) to produce a DLL file. This DLL then allowed CODE V(2023.03) to simulate the refractive index field derived from the MATLAB (R2023b) regression analysis.
3. Optical System Design and Processing Optimization Methods
3.1. Optical Analysis System
The Alvarez lens system analyzed in this study consisted of two pairs of identical Alvarez lenses and a fixed-focus lens (see
Figure 4). As shown in
Figure 4a,b, the CODE V(2023.03) analyses considered two operation modes: a wide-angle mode (50° field of view, referred to here after as Zoom 1) and a telephoto mode (20° field of view, referred to as Zoom 2), with the effective focal lengths of the two modes differing by a factor of two. The detailed optical system specifications of the two modes are listed in
Table 3. Collectively, the two operation modes provided nine fields of view, as listed in
Table 4, with a wavelength of 590 nm in each case.
3.2. Taguchi Method
The Taguchi method employs statistical sampling techniques to design experiments using orthogonal arrays, perform variance analysis on experimental outcomes, and achieve robust single-objective process optimization. By integrating these statistical principles, the Taguchi method aims to improve both the process quality and the process robustness. It has found widespread use across diverse industries for applications such as manufacturing and production, product design, and quality control.
In this study, the Taguchi method was employed to investigate the individual effects of the main injection molding parameters on the quality of the molded Alvarez lens. In general, the Taguchi method begins by establishing a set of
b control factors (parameters), each exhibiting
a levels. These experimental conditions are then configured as a set of
n experimental trials in an orthogonal array L
n(a
b). Here, the term “orthogonality” refers to the fact that the orthogonal array (OA) ensures a balanced representation of all possible combinations between any two factors (columns). For each run in the OA, the quality of the experimental outcome is evaluated using a carefully chosen signal-to-noise Ratio (SNR), where the form of this ratio (larger is better, smaller is better, or nominal is best) depends on the particular application under consideration [
22,
28,
29,
30,
31,
32,
33]. After evaluating the SNR for each experimental trial, analysis of variance (ANOVA) is employed to analyze the differences among multiple groups and determine the influence of each factor on the quality metrics. The ANOVA results thus enable the identification of the optimal factor levels for the particular process considered.
Using Taguchi OAs to design experiments and then performing variance analysis allows for the calculation of several critical research metrics, such as the effect of factor
P shifting from level
i to level
i + 1, denoted as
, and the sum of squares SS
P for factor
P. These calculations are given by Equations (2) and (3), respectively, as
where
is the average effect of factor
P at level
i, n is the number of experimental runs in the OA,
r is the number of samples per run,
LP is the number of levels for factor
P,
is the mean quality characteristic at level
k of factor
P, and
is the overall mean quality characteristic.
The purpose of calculating the level effects and the sum of squares (
SS) is twofold: first, to determine the optimal response level for each factor and second, to conduct ANOVA tests on the confidence level and contribution of each factor. In the Taguchi method, the contribution of factor
P is defined as
, where
is the total sum of squares. The F-test is used to determine the relative importance of the factors. In particular, the F-test is employed to compare the variance of the sample mean estimates (
) with the population variance (
), as expressed in Equation (4).
where the numerator,
, represents the variance resulting from factor changes, while the denominator,
, reflects the variance after eliminating all the factor influences.
A larger F-ratio indicates a smaller probability that the sample means belong to the same population, suggesting that the factor has a significant influence. Conversely, an F-ratio closer to 1 indicates that the factor exerts no meaningful impact on the process.
3.3. Gray Relational Analysis
Gray Relational Analysis (GRA) [
34,
35] is a modeling approach designed to handle systems that are incomplete and uncertain. It enables the analysis of the relative correlations between variables and objectives by converting experimental data into gray sequences, computing gray relational grades, and evaluating the relevant importance of different decision factors. In many data analyses, missing or unevenly distributed discrete data are common and often unavoidable. Most decisions are made based on such discrete points; for example, the Taguchi method uses OAs with minimal experiments to represent full-factorial experimental runs. This approach, although efficient, can lead to uncertainties in the relationships between variables, particularly when dealing with multiple objectives. Moreover, the Taguchi method is a single-objective optimization method. That is, it provides insights only into the individual effects of the various processing parameters on the quality outcome rather than their collective effects. Nonetheless, by combining GRA with the Taguchi method, the SNR results can be used as interpretive indicators, and gray relational grades can be generated using Deng’s gray model [
36,
37,
38]. This process ultimately enables the formulation of a multi-objective optimization problem in which the aim is to determine the optimal combination of process factor level settings that maximizes the quality of the experimental outcomes.
Gray Relational Analysis employs a series of steps to simultaneously account for data from multiple objectives. The process begins with normalization in order to make all the objective values comparable. Gray relational coefficients are then generated using Deng’s gray relational model. By default, all the objectives are assumed to be equally important. Consequently, the gray relational grade is obtained simply by averaging the gray relational coefficients. The resulting gray relational grade sequence can then be used to calculate the factor responses following the Taguchi method. This step determines how the gray relational grades respond to each factor, allowing for the selection of optimal levels for each factor. Ultimately, this approach yields a gray relational optimized process parameter configuration. The original response sequence is normalized as follows:
where
is the normalized value from the data,
is the smallest value of
; and
is the largest value of
.
In GRA theory, a gray relational coefficient equal to unity implies that the two sequences are completely related. The equations are given as follows:
where
i = 1, 2, 3, …,
m;
j = 1, 2, 3…,
m;
k = 1, 2, 3, …,
n;
is the absolute value difference between
and
;
is the reference series;
is a specific comparison series;
is the gray relational coefficient; Δ
min is the smallest value; Δ
max is the largest value; and
is the distinguishing coefficient, where
. (Note that the distinguishing coefficient is an index used to distinguish among the factors and was assigned a value of 0.5 by default in the present study.) Having calculated all the gray relational coefficients, the corresponding gray relational grades were obtained as follows:
where
is the gray relational grade, and
c is the number of sequences.
In summary, in this study, the GRA method was used to optimize the geometric design and manufacturing conditions of the considered Alvarez lens by effectively balancing and improving multiple performance objectives in the injection molding process.
3.4. Robust Multi-Criteria Optimization
The Robust Multi-Criteria Optimization (RMCO) method [
39,
40,
41,
42] is a multi-objective optimization approach that integrates Pareto optimality, Analysis of Variance (ANOVA), and iterative experimentation. Pareto optimality, originally a socio-economic concept, describes a state in which one individual’s condition improves without deteriorating that of others. In the context of multi-objective optimization, it ensures that at least one objective gains without compromising the others.
Prior to RMCO execution, the Taguchi OA results for each objective were analyzed using ANOVA to determine the contribution ratio, which reflects the importance of each factor toward a given objective. The basic rules for the RMCO process were then set as follows: Basic Rule 1: For factors significantly impacting multiple or all objectives, select the level that optimizes at least one of these objectives. Basic Rule 2: For factors significantly impacting only one objective, choose the level that optimizes that objective, disregarding its effects on other objectives. Basic Rule 3: For factors with no significant impact on any objective, set the level freely within the limits imposed by process constraints.
Based on these principles, RMCO proceeded with iterative experimentation and refined the parameter settings by selecting the best configuration from each iteration. The iteration process followed four key rules: Iteration Rule 1: If multiple objectives had differing optimal levels under Basic Rule 1, the ranges containing these optimal levels were incorporated into further iterative experimentation, and new level averages were reassigned within those ranges. Iteration Rule 2: For factors governed by Basic Rule 2, the selected level remained fixed throughout the entire iterative process. Iteration Rule 3: In cases where Basic Rule 3 applied, the best level determined via GRA replaced designer discretion to enhance the optimization process. Iteration Rule 4: If the impact of a factor on all the objectives was generally moderate, its original level configuration was retained without adjustment during iterative experimentation.
4. Optical Analysis: Spot Diagram, Distortion, and Modulation Transfer Function
In contrast to traditional interpretations of MFA simulation results, which generally focus on issues such as warpage deformation, optical path difference, birefringence, and refractive index variations, this study aimed to improve the transition between the MFA and optical simulation environments. By addressing this integration challenge, the optical software can more accurately interpret the mold flow results and implement more effective optimization methods. In the optical simulation process, the chosen evaluation criteria included spot diagram, distortion, and MTF simulations. These three criteria, combined with two zoom modes of the optical system (see
Figure 2), resulted in a total of six objectives within the Taguchi experimental design. It was therefore crucial to clearly define the ideal function for each objective. The aim of the Taguchi experiments was to minimize variability in the evaluated metrics of the manufactured parts such that, under ideal conditions, the quality outcomes perfectly coincided with those of the optical design. Consequently, the outcomes from the optical design served as the reference ideal functions.
Given the problem considered in the present study, the SNR was formulated such that smaller differences between the experimental outcomes and the optical design results were preferred, as expressed in Equation (9), where
n represents the number of samples,
represents the individual sample values, and
is the standard deviation of the sample population.
The following sections describe the evaluation metrics and the methods used to calculate their values in greater detail.
4.1. Spot Diagram
The spot diagram serves as a visual tool for evaluating the imaging quality of an optical system. By simulating the light paths, spot diagrams illustrate how light rays from different fields of view converge after passing through the optical system. In the spot diagram, each ray is represented as a point and is derived from uniformly distributed sampling points on the object or light source. The positions of these points on the imaging plane indicate the focusing quality and overall optical performance of the system.
In this study, spot diagrams were constructed for nine fields of view under two zoom conditions (i.e., Zoom 1: wide angle; Zoom 2: telephoto).
Figure 7a presents the spot diagrams for the nine fields of view in the wide-angle mode, while
Figure 7b shows the spot diagrams for the telephoto mode. Ideally, when light passes through a perfect optical system, all the rays converge to a single focal point, resulting in a tightly clustered spot pattern. In other words, the ideal performance metric for a spot diagram is typically zero. However, because the manufacturing goal in the present study is to match the optical design rather than to optimize the design itself, the performance targets may vary depending on the magnitude of the results and their assigned weights. In some cases, these variations may even lead to optimization failures. Therefore, this study did not consider the ideal performance metric for spot diagrams to be zero. Instead, the ideal function was defined as the minimum root mean square (RMS) circular diameter achieved by the optical design in each field of view condition.
For any zoom mode, the quality characteristic
under the spot diagram objective was determined as the difference in the minimum RMS diameter of the spot diagrams for that field of view before and after manufacturing variability, as expressed by Equation (10).
where the variable
represents the minimum RMS diameter of the spot diagram for a specific field of view, and
i denotes the field number. Similarly,
is the minimum RMS diameter determined during the optical design phase. Given that there were nine fields of view in this study,
i ranged from 1 to 9 in the spot diagram analysis.
4.2. Distortion
The deformation grid chart is a commonly used method to evaluate the distortion effects of an optical system. It measures optical deformation phenomena by using a grid of straight lines or squares to assess the distortion of an optical imaging system. For example, referring to
Figure 8, the black gridlines represent the paraxial grid image, while the red gridlines show the imaging results. In this study, the distortion was evaluated exclusively at a field angle of 0°, and the node positions in the deformation grid for the optical design were compared to those affected by manufacturing variations. As for the interpretation of the spot diagram results, the quality characteristic
was calculated as the distance between the XY plane coordinates of the design and manufactured grid points, respectively, as described in Equation (11).
where
(
,
) represents the deformation grid nodes after manufacturing, and variable
i denotes the grid point index. Similarly,
(
,
) represents the deformation grid nodes during the design phase. Based on the automated grid setup in CODE V(2023.03), each side of the grid included 11 nodes, resulting in a total of 121 sampled data points. Thus,
i ranged from 1 to 121 in the distortion analysis.
4.3. Modulation Transfer Function
The MTF describes the contrast transfer capability of an optical system at varying spatial frequencies and thus represents its ability to preserve image details. In the MTF curve, the horizontal axis denotes the spatial frequency, while the vertical axis indicates the modulation, reflecting contrast changes from 0 to 1. As shown in
Figure 9, each field of view (Zoom 1 and Zoom 2) included both tangential and sagittal orientations, represented as X and Y in the right-hand legend.
There are two types of MTFs: geometric MTF and diffraction MTF. Geometric MTF describes the contrast degradation caused specifically by geometric aberrations in the optical system, excluding diffraction effects. Diffraction MTF is the product of geometric MTF and the diffraction limit, making it closer to real-world outcomes. Therefore, the analysis in this study focused on diffraction MTF. The analysis evaluated the MTF results up to 60 lp/mm (line pairs per millimeter) with an interval of 10 lp/mm. Since the result at 0 lp/mm approaches 1 infinitely, including it would diminish the observed differences. Therefore, the analysis was limited to the range of 10–60 lp/mm, where meaningful changes can occur. The quality characteristic
yi was calculated as the modulation difference in the same field of view and direction, as expressed in Equation (12).
where
represents the modulation value after manufacturing, while
refers to the modulation value from the optical design. With the data collected from nine fields of view, two orientations, and six spatial frequencies, a total of 108 data points are generated. Therefore,
i ranged from 1 to 108 in the MTF analysis.
5. Results and Discussions
The aim of this study was to identify the combination of factors and levels for the injection molding process parameters that optimized the optical performance of the Alvarez lens system (see
Figure 4). Notably, the design problem did not focus on a single optical component; instead, it involved a composite system capable of providing two distinct focusing modes. Consequently, achieving the desired outcomes for both modes (telephoto and wide-angle) and meeting the requirements of three optical quality metrics (spot diagram, distortion, and MTF) resulted in six optimization objectives. The Taguchi method is useful in this regard, as it allows for the efficient exploration of the factor space. However, it only provides single-objective optimization results, which are insufficient for the considered multi-objective problem. Therefore, the Gray Relational Analysis (GRA) and Robust Multi-Criteria Optimization (RMCO) approaches were also employed. These methods are particularly valuable in this context because of their capacity to handle and synthesize multifaceted optimization scenarios. GRA and RMCO enable the balancing of various performance effects and provide a comprehensive solution that simultaneously accounts for all six objectives, thus overcoming the limitations of the Taguchi method.
5.1. Determining Process Impact Factors
The initial step in the optimization process involved the identification and analysis of the critical process factors affecting the injection molding performance. Thus, a factor significance test was performed. Given the numerous factors influencing the quality of injection-molded components, an L12 orthogonal array (OA) was selected for the F-test experiment. The L12 OA, a specialized two-level orthogonal array, excludes interaction effects and is thus particularly suitable for factor screening via F-tests.
The level assignments for the control factors in the Taguchi design are presented in
Table 5. As shown, the L
12 OA incorporated ten factors: the feedstock material, mold temperature, melt temperature, filling time, multi-stage flow rate, packing time, packing pressure, V/P (velocity/pressure) switching ratio, ejection temperature, and cooling time. Two materials were considered: CM205 and CM211. For each material, the mold and melt temperature levels were interpolated between the upper and lower processing limits for the particular material. Levels at the extreme limits were denoted as Max or Min.
As shown in
Table 5, column K in the OA was not assigned a factor and was reserved for “error.” This arrangement enabled the F-test in the Taguchi ANOVA stage to use the SNR (signal-to-noise ratio) variance results. In an OA without interactions, the final column serves as the error term for ANOVA, allowing for variance analysis of all considered process factors.
Table 6 shows the Taguchi experimental design and corresponding SNR results for each zoom mode and quality objective. Based on the factor screening results across all the objectives, six factors were identified as control factors for the main experiments: the material, mold temperature, filling time, filling rate (multi-stage), packing time, and packing pressure (see
Table 7). To maximize the optimization benefits, the excluded factors were fixed at their optimal levels based on the GRA results. In particular, the melt temperature was set at Max, the ejection temperature at 90 °C, and the cooling time at 10 s. The V/P switch ratio exhibited only a minor effect across all the groups, and its two levels were split equally across the optimal results for each objective. Thus, given this balanced distribution and its minimal impact, a middle value of 97% was chosen for the V/P switching ratio.
5.2. Optical Performance Optimization Analysis
After the model is meshed, the influencing factors and levels are determined through the Taguchi method’s orthogonal array trial process. Each set of trials is then subjected to numerical mold flow analysis based on the specified parameter combinations. Each set of results contains discretized information, including the geometric coordinates and refractive index values of the mesh nodes. These discrete values must be converted into continuous data through fitting methods to facilitate subsequent optical analysis. The goal of this study was to identify the injection molding process parameters for an Alvarez lens that optimized three quality targets (spot diagram, distortion, and MTF) across two zoom conditions (a wide-angle mode and a telephoto mode).
Table 8 presents the factor level assignments for the Taguchi experimental design used to satisfy this goal. In accordance with the Taguchi methodology, a variance analysis was performed on the experimental results. Two multi-objective optimization approaches (GRA and RMCO) were then employed to refine the optimal process parameters.
In general, multi-objective optimization requires careful consideration of the weighting configuration, that is, the objectives that are more critical for the product. Different weight proportions result in different optimal process configurations. As a result, the weights must be carefully assigned over the multiple objectives. However, in this study, all the objectives were considered equally important. Consequently, the objectives were assigned an equal weight. Altering the weight distribution would change the outcome. For both multi-objective optimization methods, the extent of process improvement for each combination of factor level settings was evaluated using the mean square deviation (MSD), which was evaluated as
where
represents the sample size,
denotes the individual data points,
is the target value for the data, and
is the population standard deviation. The use of the MSD measure is motivated by the fact that all the objectives aim to closely match the optical design outcomes. Thus, if the data perfectly coincides with the optical design results, the optimization level can be expressed as 100%. If there is no improvement compared to the results for the baseline group, the improvement level is 0%. Conversely, if a group exhibits quality degradation, it can be represented as a negative gain, which indicates a loss.
As described above, six factors—the material, mold temperature, filling time, multi-stage filling rate, packing time, and packing pressure—were identified from the screening experiments as control factors for the main experiments. With the exception of the feedstock material, each control factor was assigned five level settings. Consequently, the experimental trials were configured in an L
25(6
5) orthogonal array. The material factor was arranged as a dummy level in the Taguchi experiments, meaning that a two-level factor was inserted into the five-level OA. That is, Levels 3 through 5 simply repeated the configurations of Levels 1 and 2 in the A-factor column of
Table 8.
Table 9 lists the SNR values for each experimental group and objective. The SNR values were used as inputs for the subsequent GRA optimization process.
Table 10 presents the gray relational coefficient sequences and gray relational grade sequences for each objective. A factor response analysis was conducted on the gray relational grades. The results are shown in
Figure 10, where the red circles indicate the optimal level selection for each factor based on the gray relational grade response analysis. Overall, the GRA results reveal that the optimal process configuration comprised the CM 205 material, a mold temperature of 50%, a fill time of 0.2 s, a four-stage filling rate, a packing time of 1.5 s, a packing pressure of 70%, and the fixed factor parameter settings.
5.3. Optical Performance Optimization Evaluation
The optimization outcomes for the Alvarez lens system were determined using three optimization methods: the standard process (parameters recommended by the molding machine), GRA, and RMCO. For each method, the spot diagram, distortion, and MTF performance were evaluated under both zoom conditions, and the results were compared with those of the optical design.
Spot Diagram Optimization:
Figure 11 presents a box plot analysis indicating the spot diagram performance improvement obtained by each method compared with the optical design. The RMCO method resulted in the smallest deviation from the optical design. In particular, as shown in
Figure 12, the RMCO method reduced the RMS value of the spot diagram to 0.018768 mm for Zoom 1 and 0.003225 mm for Zoom 2, demonstrating a notable enhancement compared to the optical design.
Distortion Optimization:
Figure 13 provides a box plot analysis of the distortion improvements obtained by the three methods. The RMCO method showed a clear improvement in the Zoom 1 (wide-angle) condition. However, its performance was slightly poorer than that of the GRA method for the Zoom 2 (telephoto) condition.
Figure 14 shows the actual distortion maps with corner-point distributions. While all three optimization methods improved the overall distortion performance, they did not achieve noticeable improvements in the localized distortion.
MTF Optimization: As shown in the box plot in
Figure 15, the RMCO method significantly improved the MTF performance in Zoom 1 but offered only a marginal improvement over GRA in Zoom 2.
Figure 16 shows that all three optimization methods achieved a more pronounced MTF improvement in the Zoom 2 condition than in the Zoom 1 condition. Since Zoom 2 already exhibited strong MTF performance, further improvements were less evident, as corroborated by
Figure 15.
RMCO Iterative Analysis
and Best Parameter Selection: GRA and RMCO shared the same main trial setup, as shown in
Table 9. Statistical significance and contribution levels were used to determine the factor importance. For the RMCO method, the factor levels were updated from GRA in accordance with the iteration rules described in
Section 3.4. The updated configurations are listed in
Table 11. New trials were then conducted using an L25 orthogonal array, with the results presented in
Table 12. As shown, Group 10 achieved the highest mean gain, reducing the MSD by 55.182% and improving all the objectives. Specifically, the spot diagram improved by 69.583% (Zoom 1) and 93.849% (Zoom 2), the distortion improved by 64.194% (Zoom 1) and 29.881% (Zoom 2), and the MTF improved by 65.842% (Zoom 1) and 7.747% (Zoom 2). Based on Pareto optimality—without considering fairness issues—the best process parameters were determined from Group 10. Accordingly, the optimal process parameters were determined to be the CM 211 material, the maximum mold temperature, a 0.1 s filling time, a four-stage filling rate, a 1.5 s packing time, an 85% packing pressure, and the previously mentioned fixed factors, achieving a 55.182% average MSD reduction.
Comparative Results and
Average Optimization Impact:
Table 13 compares the performance improvements of the GRA and RMCO methods over the results of the standard method for the six performance evaluation criteria. The GRA method provided an overall performance improvement (MSD) of 20.547%. The spot diagram showed improvements of 22.298% and 77.780% for Zoom 1 and Zoom 2, respectively. The distortion Zoom 1 and MTF Zoom 2 performances were also improved by 17.980% and 9.283%, respectively. The distortion Zoom 2 and MTF Zoom 1 showed slight performance losses of 2.823% and 1.235%, respectively. However, these losses were negligible compared to the other performance improvements, and hence, the overall performance improvement obtained by the GRA method remained relatively high (MSD = 20.547%). For the RMCO method, the overall performance improved by 55.182% compared to that of the standard process. Furthermore, with the exception of the MTF Zoom 2 objective, the RMCO method consistently outperformed the GRA method.
Comparison of the differences between RMCO and GRA methods: The key advantage of RMCO over GRA lies in its closed-loop framework of “identification–constraint–iteration.” GRA begins by normalizing each objective’s signal-to-noise ratio (SNR), calculating the gray relational grade, and then assigning equal weights to all objectives to determine the parameters in a single step. This approach implicitly assumes equal importance and near-linear relationships among objectives, which can dilute critical indicators, resulting in a struggle to handle conflicting objectives. In contrast, RMCO leverages variance analysis to identify dominant factors and restricts or converges their levels based on fundamental decision rules. For conflicting objectives, it iteratively refines the search space through interval narrowing strategies. Built upon the initial GRA outcomes, RMCO incorporates heuristic tuning of secondary factors and conducts Pareto optimization across iterative experiments. This enables direct extraction of Pareto optimal solutions, offering better capture of nonlinear interactions and interdependencies, thereby enhancing overall robustness. Although this comes at the cost of an increased number of experiments, it yields a more consistent global trade-off optimum. In this study, RMCO achieved an average improvement of 55.182% in mean square deviation (MSD), significantly outperforming the 20.547% improvement attained by GRA. However, this gain required 24 additional experimental runs. Furthermore, for individual performance metrics such as MTF at Zoom 2, GRA occasionally delivered slightly better results, suggesting that RMCO prioritizes global trade-off optimality over localized peak performance.
5.4. Error Analysis
Owing to differences in computational simulation approaches across various software platforms, the models and data used in the MFA and CODE V(2023.03)analyses cannot be directly shared. Furthermore, the transition from discrete points to continuous functions introduces information loss during the conversion process. Ideally, if the analysis programs perfectly adhered to physical principles, denser data points would better maintain continuity and provide a more accurate model representation. In such cases, less data is lost during conversion, resulting in simulations that more closely match reality. Conversely, too few data points during conversion may lead to incomplete feature descriptions and exacerbate the inherent errors of finite element analysis (FEA). However, increasing the data density raises the computational costs and prolongs the analysis time. Thus, in this study, conversion errors were observed at three stages: the mesh size in MFA, refractive index regression, and fitting the deformed mesh to a smooth surface after MFA. All three errors arose from the transitions between discrete data and continuous functions. To address these issues, suitable conversion parameters were determined through testing, balancing the need to reduce the computational cost while simultaneously minimizing the conversion error.
Refractive Index Polynomial Regression: Polynomial regression of different orders produces different equations, each with a distinct fitting accuracy. However, the number of coefficients accepted by the CODE V(2023.03) software is limited. In particular, the user-defined gradient refractive indices are restricted to a maximum of 150 coefficients. A full three-variable eighth-order polynomial requires 165 coefficients, which exceeds this limit. Therefore, the present study only considered the first- through seventh-order polynomial fits. The Mean Absolute Error (MAE) was used as a quick and effective metric to evaluate the fitting accuracy in each case. Since the data range for evaluation matched the reference data range, generalization was not an issue. The analysis showed that the higher-order polynomials provided better fits. Consequently, all the refractive index regression analyses performed in this study used seventh-order polynomials.
Deformed Mesh-to-Surface Fitting Convergence: The primary experimental model used a mesh size of 0.025 mm, with the convergence analysis focusing on the hardness parameter. The fitting convergence study analyzed hardness values from 10,000 down to 0.0001. Using the “Point Deviation” command within the same software Rhinoceros 5.0, the numerical differences at the sample points were examined. The deformed mesh on the output surface of the standard process was chosen as the reference model, since its complex curvature provided a robust test. In other words, it was assumed that if an accurate fitting could be achieved for this complex surface, the same parameters would also be valid for the simpler input surface. The results, shown in
Table 2, showed that as the hardness decreased, the node spacing differences also diminished. Both the maximum displacement and the average displacement converged at a hardness of 0.1. Excessively low hardness values can lead to overfitting beyond the sampled points. Thus, the convergence analysis determined that a hardness of 0.1 adequately captured the deformation characteristics caused by the injection molding process.
6. Conclusions
This study successfully combined mold flow analysis and optical design simulations to optimize the design and manufacturing of Alvarez freeform lenses produced by injection molding. Gray Relational Analysis (GRA) and Robust Multi-Criteria Optimization (RMCO) were employed to facilitate the multi-objective optimization of the key injection molding process parameters, achieving significant improvements in the optical performance compared with that obtained using single-objective Taguchi trials. The analyses revealed that the lens material, mold temperature, filling time, and pressure exhibited the most significant impact on the molding quality of the Alvarez lenses, as evaluated by the spot diagram, distortion, and modulation transfer function (MTF) performance measures across two zoom modes (wide-angle and telephoto). Of the two multi-objective optimization methods, RMCO required greater computational effort but showed a more substantial enhancement in the optical precision and stability of the manufactured lens.
Overall, the results presented in this study demonstrate the effectiveness of using advanced simulation and optimization techniques to improve the manufacturing process of precision optical components. The findings provide valuable insights for industry, highlighting the importance of controlling the process parameters to achieve high-quality products such as Alverez lenses. Future research is as follows: (1). To enable the transformation from discrete mesh data to a continuous refractive index field, a multivariate regression approach was adopted in this study. This method is particularly effective for optical components with smooth geometries, such as the Alvarez lens. However, for components exhibiting complex geometric discontinuities—such as Fresnel lenses and light guide plates—conventional regression fitting becomes insufficient. In such cases, neural networks or other deep learning-based methods are recommended to achieve more accurate modeling of the refractive index distribution. (2). In addition to manufacturing-induced variations in optical performance, the internal stress generated during the assembly of plastic lenses must also be considered, as it can introduce further degradation in optical characteristics. To address this issue, future work will incorporate finite element analysis (FEA) to simulate assembly-induced stress fields. Furthermore, inverse analysis will be employed to evaluate the impact of manufacturing parameters on the robustness of the combined manufacturing–assembly process.