In four-dimensional additive manufacturing (4DAM), specific external stimuli are applied in conjunction with additive manufacturing technologies. This combination allows the development of tailored stimuli-responsive properties in various materials, structures, or components. For shape-changing functionalities, the programming step plays a crucial role in recovery after exposure to a stimulus. Furthermore, precise tuning of the 4DAM process parameters is essential to achieve shape-change specifications. Within this context, this study investigated how the structural arrangement of infill patterns (criss-cross and concentric) affects the shape memory effect (SME) of compression cold-programmed PLA under a thermal stimulus. The stress–strain curves reveal a higher yield stress for the criss-cross infill pattern. Interestingly, the shape recovery ratio shows a similar trend across both patterns at different displacements with shallower slopes compared to a higher shape fixity ratio. This suggests that the infill pattern primarily affects the mechanical strength (yield stress) and not the recovery. Finally, the recovery force increases proportionally with displacement. These findings suggest a consistent SME under the explored interval (15–45% compression) despite the infill pattern; however, the variations in the mechanical properties shown by the stress–strain curves appear more pronounced, particularly the yield stress.
Photovoltaic power forecasting is important because solar generation varies with weather conditions. Accurate forecasts help improve grid operation, reduce costs, enhance system stability, and support battery management. This paper presents a hybrid methodology that combines statistical analysis and machine learning to forecast photovoltaic power generation. First, the data are cleaned and preprocessed. Then, the input vector is selected using two criteria: collinearity analysis to remove redundant variables, and Granger causality to identify variables with predictive value in a nonlinear autoregressive with exogenous inputs artificial neural network (NARX-ANN) framework. Next, an experimental design is used to evaluate two training algorithms and activation functions for the hidden layer available in Matlab® version 26.1.0.3276743 (R2026a Update 3, MathWorks Inc., Natick, MA, USA). The methodology is validated by comparing hundreds of input-variable combinations generated through binomial coefficients. A case study using data from Sonora, Mexico, shows that the best model is the Collinearity–Causality (CC)-NARX-4 model, which uses four input variables, a radial basis function in the hidden layer, and Bayesian regularization backpropagation. This model achieves a root-mean-square error (RMSE) of approximately 132 watts (W) for the forecasting stage/forecasting horizon. The results are also compared with a nonlinear autoregressive (NAR) model to assess the predictive benefit of including exogenous inputs. The final outcome is a robust methodology for improving multivariable neural networks through (i) optimized input-vector selection using collinearity and causality tests, validated by an exhaustive combinatorial algorithm; and (ii) a systematic procedure for configuring the hidden-layer transfer function and the neural network training function.