Using Excel Solver’s Parameter Function in Predicting and Interpretation for Kinetic Adsorption Model via Batch Sorption: Selection and Statistical Analysis for Basic Dye Removal onto a Novel Magnetic Nanosorbent

.


Introduction
Magnetic nanosorbents are a type of nanomaterial that possess magnetic properties and are used for various applications, including water and wastewater treatment [1].These magnetic nanosorbents consist of magnetic nanoparticles, which are typically composed of iron oxide or other magnetic materials and functionalized with specific surface groups or coatings with activated carbon [2] to enhance their adsorption capabilities.Magnetic nanosorbents have several advantages such as high adsorption capacity [3], magnetic separation, reusability/regeneration, targeted adsorption, and scalability (can be synthesized in various sizes and shapes).However, it should be realized that there exist potential challenges and risks associated with their use.These might include the need for careful disposal of the nanosorbents to prevent environmental contamination, the potential toxicity [4] of the iron oxide magnetic nanoparticles used, and the development of efficient and cost-effective synthesis methods [5].Generally, magnetic nanosorbents have shown great promise in water and wastewater treatment applications, providing the efficient and targeted removal of contaminants.Ongoing research and the development of magnetic nanosorbents aim to optimize their performance, increase their stability and minimize potential environmental impacts.High adsorption capacity and easy and efficient separation from water using external magnetic fields are the key focus areas of much research.As magnetic nanosorbents have high surface areas and can be functionalized with specific adsorbent materials or coatings, they can effectively remove a wide range of contaminants from water, including heavy metals [6], organic pollutants [7], dyes [8], and other harmful substances.They have a high adsorption capacity, which allows for the efficient removal of contaminants even at low concentrations [9].
It is well known that basic dyes are a type of synthetic dye that are commonly used in various industries, including textiles, paper, and some types of inks, which are typically alkaline or basic in nature with a pH greater than 7 [10].In addition, basic dyes also have vibrant and bright coloration properties that make them visually appealing for staining purposes [11].Moreover, basic dyes are less expensive compared to other types of dyes used in biological staining [12], such as fluorescent dyes.On the other hand, while basic dyes have their advantages, they also have limitations such as non-specific staining, lack of specificity, poor light stability, potential toxicity, limited color options, and interference with subsequent staining.However, it is significant to note that the use and disposal of these dyes can have environmental impacts such as water pollution, the production of chemical waste, energy consumption, and resource depletion.The pollution concerns associated with basic dyes are especially relevant in the textile industry [13].In the textile industry, the dyeing process often involves large amounts of water and chemicals, including basic dyes.The improper disposal of dye wastewater can lead to the contamination of local water bodies.To address these pollution concerns, various regulations, sustainable practices, and technologies have been developed to minimize the environmental impact of the dyeing processes.This includes the use of eco-friendly dyes, more efficient dyeing methods, and wastewater treatment processes to reduce pollution.The common methods of removal or treatment of basic dyes in wastewater include physical methods, chemical methods [14], biological methods [15], and advanced treatment [16].However, the choice of treatment depends on the specific context, the type and concentration of the dye pollutants, and the environmental regulations that are in place.Physical methods (filtration, adsorption, sedimentation, and coagulation-flocculation) are good options for treatment due to their cost-effectiveness and easy operation.Adsorption has been a widely used technique for removing basic dyes due to its high efficiency, versatility, selectivity, reusable adsorbents, low energy requirements, adsorbent variety, ease of operation, reduced chemical usage [17,18], and removal of non-biodegradable compounds [18], which prevent contaminant spread and environmental compatibility.
To understand and describe the rate adsorption process (physisorption and chemisorption or both sorption processes), kinetics is an essential concept that should be considered.The common kinetic adsorption models used for water and wastewater treatment include Pseudo-First-Order (PFO), Pseudo-Second-Order (PSO), Fractal Like-Pseudo First Order (FL-PFO), Fractal Like-Second Order (FL-PSO), General (rational) Order, Elovich, Diffusion-Chemisorption, and Avrami Fractionary-Order (AV) [19,20].These kinetic adsorption models are valuable tools in the field of adsorption science and engineering.They help researchers and engineers understand and predict how rate adsorption processes will behave under different conditions, which is essential for designing efficient adsorption process systems for various applications, including wastewater treatment, air purification, and chemical separation.Interpreting the kinetic adsorption models is crucial for a comprehensive understanding of adsorption mechanisms and for the design and optimization of effective processes for removing basic dyes onto magnetic nanosorbents from wastewater sources.A certain publication critiques the Lagergren equation for its empirical nature, lack of predictive ability, and inconsistency [21].When examining adsorption regulated by the Henry regime, the Pseudo-First-Order (PFO) model shows inconsistency, as it aligns with the Linear Driving Force (LDF) model solely under the condition of a constant adsorbate concentration in the bulk (C 0 ≈ C e ); i.e., in linear systems, the kinetic rate constants of both equations can only be correlated [22].Linear regression analysis is a valuable tool that has been widely used to evaluate kinetic adsorption model parameters and assess the goodness of fit of kinetic adsorption models [23,24].However, linearization is a mathematical technique used to simplify parameter estimation and model fitting but should not alter the inherent characteristics of the experimental data and predicted data or the distribution of errors of kinetic adsorption.In other words, regrettably, the transformation of kinetic data to fit into the linear forms of the model frequently introduces uncertainty and bias, often done carelessly [25].Therefore, nonlinear kinetic adsorption is essential for considering alternative modeling approaches such as nonlinear regression [26], which can provide accurate parameter estimates and better capture the nonlinear behavior of the system without altering the distribution of errors in the data [27,28].Generally, error functions have been widely applied for the goodness of fit of kinetic adsorption models such as the Residual Sum of Squares Error (ERRSQ/SSE), the Chi-square (χ2), the coefficient of determination (R-sq), the adjusted nonlinear coefficient of determination (Adj R-sq), the Average Relative Error (ARE), the Hybrid Fractional Error Function (HYBRID), Marquardt's Percent Standard Deviation (MPSD), and Root Mean Square Error (RMSE) Sum of Absolute Errors (EABS) and Normalized Standard Deviation (NSD) [29,30].Additionally, Akaike's information criteria are widely recognized as reliable benchmarks for model selection, renowned for their predictive accuracy and straightforward decision-making basis [31].These error functions can be applied through advanced software tools such as Microsoft Excel (Windows 10 and Microsoft 365 2020), MATLAB (version R2019), and OriginPro (version 2019) and even through Minitab (version 16) and SigmaPro (version 8).However, the MATLAB, OriginPro, Minitab, and SigmaPro programs are not available with built-in functions of statistics.On the other hand, Microsoft Excel is a readily available software tool that offers built-in statistical functions and kinetic adsorption models that users prefer.This research highlights the significance of magnetic nanosorbents in a particular research context of the sorption properties of basic dyes that can be manipulated or controlled using a magnetic field.The purpose of this study would likely require rigorous experimental validation, thorough analysis, and potentially pilot-scale testing to demonstrate the effectiveness of the developed magnetic nanosorbent composite in practical water treatment scenarios.The treatment performance and efficiency evaluation were assessed through kinetic adsorption models and statistical algorithms using Microsoft Excel Solver's built-in functions.How well the magnetic nanosorbent composite performed in removing basic dyes from wastewater was assessed by parameters such as adsorption capacity, removal efficiency, or other relevant metrics.After obtaining parameter values for the kinetic adsorption models through nonlinear fitting, the models were compared using the software MATLAB and OriginPro (free trial), which allow for more sophisticated data analysis and visualization compared to Microsoft Excel's spreadsheet-based program tools.

Experimental Dataset
Experimental data for kinetic adsorption studies are typically obtained through laboratory experiments (Figure 1) designed to measure the adsorption behavior of contaminants over time, as shown in Table 1 [2].The laboratory data of adsorption kinetics were collected from a previous study performed by using a magnetic nanosorbent (derived from waste macadamia nut shells and magnetite nanoparticles) as an adsorbent with basic dye (methylene blue) used as an adsorbate.This magnetic nanosorbent was successful in the removal of basic dyes in wastewater and was simple to handle and separate during the treatment process, saving the cost of operation.The data were performed via batch sorption, which was achieved subsequent to the equations as presented below.
based program tools.

Experimental Dataset
Experimental data for kinetic adsorption studies are typically obtained through laboratory experiments (Figure 1) designed to measure the adsorption behavior of contaminants over time, as shown in Table 1 [2].The laboratory data of adsorption kinetics were collected from a previous study performed by using a magnetic nanosorbent (derived from waste macadamia nut shells and magnetite nanoparticles) as an adsorbent with basic dye (methylene blue) used as an adsorbate.This magnetic nanosorbent was successful in the removal of basic dyes in wastewater and was simple to handle and separate during the treatment process, saving the cost of operation.The data were performed via batch sorption, which was achieved subsequent to the equations as presented below.
The quantity 'qt' (mg g −1 ) represents the amount of basic dye adsorbed at a given time 't'.'C0' stands for the initial concentration, while 'Ce' denotes the equilibrium concentration of methylene blue in milligrams per liter (mg L −1 ).'V' represents the volume of the raw water used in a prior study (the synthetic solution was derived from methylene blue), measured in liters (L).Finally, 'm' stands for the mass of the prepared magnetic nanosorbent, measured in grams (g).The quantity 'q t ' (mg g −1 ) represents the amount of basic dye adsorbed at a given time 't'.'C 0 ' stands for the initial concentration, while 'C e ' denotes the equilibrium concentration of methylene blue in milligrams per liter (mg L −1 ).'V' represents the volume of the raw water used in a prior study (the synthetic solution was derived from methylene blue), measured in liters (L).Finally, 'm' stands for the mass of the prepared magnetic nanosorbent, measured in grams (g).

Kinetic Adsorption Models
It is important to note that the choice of kinetic adsorption model depends on the specific adsorbent contaminant system being studied.Different models may be more appropriate for different scenarios, and it is essential to validate the chosen model against experimental data to ensure its accuracy and reliability.Additionally, it is worth considering that adsorption kinetics can be influenced by various factors such as temperature, pH, concentration, and the properties of the adsorbent and contaminant.Kinetic adsorption models are mathematical models used to describe and predict the adsorption behavior of contaminants (such as basic dyes) in water and wastewater treatment processes over time.These models are based on the assumption that adsorption follows a certain rate equation or kinetic mechanism.The kinetic adsorption models that this research focused on can be listed as [32][33][34][35][36][37][38]: Fractal like − pseudo first order (FL − PFO)= q t = q e .(1 Fractal like − pseudo sec ond order (FL General (rational) order = q t = q e − q e t × k r ×q n−1 e Diffusion − Chemisorption = q t = q e ×k DC ×t 1/2 k DC ×t 1/2 +q e (8) Avrami fractionary − order = q t = qe× 1 − exp(−(k av ×t)) n av (9)

Error Function Statistic Tools for Kinetic Adsorption Model
The error function statistic tool is a mathematical method commonly used in water and wastewater treatment to evaluate the performance of treatment processes.It is used to assess the accuracy of predictions or measurements by comparing the expected or desired values with the actual values obtained during the treatment process.The error function statistic provides a quantitative measure of the deviation between the predicted or target values and the observed values.It is important to note that the choice of statistical tools may vary depending on the specific circumstances and assumptions of the adsorption process.The selection of the best-fitting kinetic model depends on the specific system and experimental conditions.Different kinetic adsorption models may be more appropriate for different adsorption processes and statistical results.Statistical results can be used to validate the best-fitting kinetic adsorption model and evaluate its predictive performance of the adsorption process.The most commonly used error function statistics in water and wastewater treatment are shown in Equations ( 10)-( 18) that were used and evaluated to define the kinetic adsorption characteristics of basic dyes adsorbed onto the magnetic nanosorbent.They provide a measure of the average magnitude of errors, disregarding their direction.The statistical formulas for calculating them are as follows [32][33][34][35][36][37][38][39][40][41][42][43][44][45][46][47][48].

Microsoft Excel Minimized Solver Error Functions and Kinetic Adsorption Models
Microsoft Excel was used as a tool for the determination of the nonlinear kinetic adsorption models for this study.While Excel is primarily known as spreadsheet software, it offers various mathematical and statistical functions that can be utilized for data analysis and curve fitting to evaluate the best-fitting of the nonlinear kinetic adsorption models.Microsoft365, 2021, was used to determine nonlinear kinetic adsorption models and error functions.However, it is worth mentioning that while Microsoft Excel can be used for nonlinear kinetic adsorption modeling, it may have limitations compared to specialized software designed specifically for advanced curve fitting and analysis.If the analysis requires more complex modeling techniques or advanced statistical methods, consideration should be given to using dedicated scientific software such as MATLAB and OriginPro for justifying the analysis results.To evaluate the statistical results from the Microsoft Excel Solver spreadsheet, the data fitting was estimated with MATLAB and OriginPro via the formulated algorithm as presented in Figure 2.  To solve the experimental data (Table 1) of kinetic adsorption obtained from laboratory experiments, eight kinetic adsorption models (Section 2.2) and nine statistical error functions (Section 2.3) were used for analysis via the Microsoft Excel spreadsheet function, as shown in Tables 2 and 3. Table 2 demonstrates the input of experimental data and the run of Microsoft Excel Solver's spreadsheet-based program using the PFO kinetic adsorption model as an example model for data fitting.Table 3 provides the Excel codes for the PFO kinetic adsorption model using a Microsoft Excel-based program.In this study, the PFO kinetic adsorption model was used as a case study in solving via Microsoft Excel Solver's spreadsheet-based program.The related kinetic adsorption and statistical formula can be followed in the steps detailed below.To solve the experimental data (Table 1) of kinetic adsorption obtained from laboratory experiments, eight kinetic adsorption models (Section 2.2) and nine statistical error functions (Section 2.3) were used for analysis via the Microsoft Excel spreadsheet function, as shown in Tables 2 and 3. Table 2 demonstrates the input of experimental data and the run of Microsoft Excel Solver's spreadsheet-based program using the PFO kinetic adsorption model as an example model for data fitting.Table 3 provides the Excel codes for the PFO kinetic adsorption model using a Microsoft Excel-based program.In this study, the PFO kinetic adsorption model was used as a case study in solving via Microsoft Excel Solver's spreadsheet-based program.The related kinetic adsorption and statistical formula can be followed in the steps detailed below.The applications of the Microsoft Excel Solver Function spreadsheet provide a flexible and versatile tool for solving a wide range of optimization problems encountered in engineering and data analysis, as follows.

Experimental Dataset
As shown in Table 2, the experimental data of t at the equilibrium adsorption (min) and q t,exp at time t (mg g −1 ) were put in column A, rows A1-A15, and column B, rows B1-B15, respectively.In this case, the study had 15 datasets for kinetic adsorption at time t.The calculation via the Microsoft Excel Solver Function spreadsheet depends on the dataset of each experiment.In terms of column C, rows C1-C15 are the q t,cal at time t (mg g −1 ) of basic dye adsorbed onto nanosorbent materials.Column C, rows C1-C15 were calculated using the Solver Function of Equation ( 2) (PFO kinetic adsorption model), as shown in Figure 3.
ChemEngineering 2024, 8, x FOR PEER REVIEW 9 of 25 which was used to compute the Sum of Square Residual (SSR, row I1, SUM (E1:E15), 10,376.070).Henceforward, the solver parameters of the function can be accessed by clicking the tools bar's "Data" button in the Solver toolbar.This opens a dialog box that can set various options for nonlinear kinetic adsorption-fitting regression analysis via the solving method of the GRG Nonlinear model, as shown in Figure 3.

Microsoft Excel Solver's Parameter Function
To evaluate the nonlinear of kinetic adsorption models through the Microsoft Excel Solver Function, the data of Table 3 in column A (t), column B (qt,exp) and column C (qt,cal) were plotted as shown in Figure 3a.Next, the red line (time t: predicted data, qt,cal) was selected and then clicked the tools bar "Data" with the chosen Solver Function, as presented in Figure 3b.For the Solver parameter, the objective was set as "$S$1, 10,376.070"with the changing variable cells inserted as "$S$2:$S$3, 0.3000:0.7000"and a Solving method selected as GRG Nonlinear.After clicking the Solve button, the Solver results appeared, and then "Keep Solver Solution" and "OK" were clicked, as shown in Figure 3d.The Solver had converged to the current solution, and all constraints were satisfied.It can Notice that the PFO equation has k1 (row H2) and q e (row H3) selected as critical factors for the nonlinear regression analysis of the kinetic adsorption models.Therefore, k1 and q e had inserted the estimated values of 0.3 (row I2) and 0.7 (row I3) for running the algorithm, respectively.After that, the q t,cal was computed using the Solver Function of PFO (see in Figure 3, column C).It can be seen that the values of the q t,cal calculated data did not come close to the q t,exp experimental data in the comparison of columns B and C. Column D (residual) was calculated as column B minus column C (row B1-row C1), while column E (Residual 2 ) is the square of each row of column D. Residual 2 is one of the critical information components for evaluating the nonlinearity of the kinetic adsorption models, which was used to compute the Sum of Square Residual (SSR, row I1, SUM (E1:E15), 10,376.070).Henceforward, the solver parameters of the function can be accessed by clicking the tools bar's "Data" button in the Solver toolbar.This opens a dialog box that can set various options for nonlinear kinetic adsorption-fitting regression analysis via the solving method of the GRG Nonlinear model, as shown in Figure 3.

Microsoft Excel Solver's Parameter Function
To evaluate the nonlinear of kinetic adsorption models through the Microsoft Excel Solver Function, the data of Table 3 in column A (t), column B (q t,exp ) and column C (q t,cal ) were plotted as shown in Figure 3a.Next, the red line (time t: predicted data, q t,cal ) was selected and then clicked the tools bar "Data" with the chosen Solver Function, as presented in Figure 3b.For the Solver parameter, the objective was set as "$S$1, 10,376.070"with the changing variable cells inserted as "$S$2:$S$3, 0.3000:0.7000"and a Solving method selected as GRG Nonlinear.After clicking the Solve button, the Solver results appeared, and then "Keep Solver Solution" and "OK" were clicked, as shown in Figure 3d.The Solver had converged to the current solution, and all constraints were satisfied.It can be seen in Figure 3c that the predicted data followed and closed to the experimental data.All data results were changed as appropriate in Table 2.

Evaluating the Statistical Results
The numerical outcomes obtained from the statistical results were derived from data analysis using statistical methods (Equations ( 10)-( 18)) via the Microsoft Excel Solver function spreadsheet-based program.This provided information about the patterns, relationships, or trends present in the data and helped in drawing meaningful conclusions or making informed decisions about the kinetic adsorption model for the controlling mechanism.To confirm the statistical results using the Microsoft Excel Solver function spreadsheet-based program, they were compared with MATLAB and OriginPro (free trial), which are both powerful software tools that are commonly used for data analysis, visualization, and scientific plotting [49].While MATLAB and OriginPro share some similarities, they have distinct features and are often preferred in different contexts.However, this research only focused on the approach of how to apply nonlinear models through the Microsoft Excel Solver function spreadsheet-based program as a sample tool for minimizing the statical error functions and kinetic adsorption model.In terms of methodology for analysis, MATLAB and OriginPro are not detailed in this report, and we merely present the statistical results in comparison with the Microsoft Excel Solver Function.

Substantiation of Kinetic Adsorption Model Data via Microsoft Excel Solver Function
Experimental data were collected through actual observations and measurements of the removal of basic dye using the magnetic nanosorbent in a batch system.These data points were obtained by conducting controlled experiments or observations under specific conditions [2].Experimental data were considered the most reliable form of data as they directly reflect what happens in the adsorption mechanism process.However, predicted data can still be valuable for making informed decisions and predictions in situations where conducting experiments may be impractical or time-consuming.The key difference between experimental and predicted data is the source of information.Experimental data are obtained through direct observations and measurements, while predicted data are generated using models and algorithms to estimate future or unobserved value.Predicted data with the consideration of the "kinetic adsorption model" refers to using mathematical models or simulations that take into account the kinetics (rate) of the adsorption process to estimate or forecast the behavior of the system.These models can be based on empirical relationships, theoretical equations, or a combination of both.Therefore, the Microsoft Excel Solver Function was used as a based program to predict the adsorption mechanism of eight kinetic adsorption models (PFO, FSO, Elovich, Diffusion-Chemisorption, FL-PFO, FL-PSO, General (rational) Order, and Avrami Fractionary-Order).In addition, the error function (the goodness of fit) has commonly been used in the context of analyzing and quantifying errors or uncertainties in different kinetic adsorption models, and it can be computed numerically using various algorithms, which are shown and described in Section 2.2.In this study, the goodness of fit was solved to obtain the statistical results at the same time as analyzing the kinetic adsorption models.Tables 2-10 present the values of the experimental data and nonlinear kinetic adsorption statical results achieved from the Microsoft Excel Solver's parameter function along with the Excel code of regression statistic.To summarize, the nonlinear regression of kinetic adsorption models involves fitting mathematical equations to experimental data to describe the adsorption process.The goodness-of-fit measure is then used to assess how well the model fits the data and how effectively it explains the adsorption behavior.The best-selected model often chooses the kinetic adsorption model with the best goodness-of-fit metrics to gain insights into the specific adsorption system under study via Microsoft Excel Solver's parameter-built function that is available in Microsoft Office.Using MATLAB and OriginPro for evaluating parameter values in the context of the nonlinear regression of kinetic adsorption models in comparison with Microsoft Excel Solver's parameter-built function showed elevated levels; that is a common practice in scientific research and data analysis.The comparison of the parameter results and statistical results is explained in Section 3.2.

Two-Parameter Kinetic Adsorption Models
By following this framework and using the built functionalities offered by Microsoft Office, the prediction can effectively analyze experimental adsorption data, estimate model parameters, and evaluate the goodness of fit for various kinetic adsorption models.Tables 2-6 are the predictions of the two-parameter kinetic adsorption models: the PFO, PSO, Elovich, and Diffusion-Chemisorption models.These kinetic adsorption models indicate the parameter results such as k 1 (0.056 min −1 ), q e,cal,PFO (32.546 mg g −1 ), k 2 (0.002 g mg −1 min −1 ), q e,cal,PSO (35.804 mg g −1 ), α e (10.592 mg g −1 min −1 ), β e (0.168 g mg −1 ), k DC (9.001 mg g −1 min −n ), and q e,cal,DC (47.309 mg g −1 ).k 1 is the Pseudo-First-Order rate constant (min −1 ).q e,cal, PFO is the predicted adsorbate adsorbed onto the adsorbent at equilibrium (mg g −1 ) for the PFO kinetic adsorption model.k 2 is the Pseudo-Second-Order rate constant (g mg −1 min −1 ).q e,cal, PSO is the predicted adsorbate adsorbed onto the adsorbent at equilibrium (mg g −1 ) for the PSO kinetic adsorption model.α e is initial adsorption rate of the Elovich model (mg g −1 min −1 ).β e is the Elovich desorption constant (g mg −1 ).K DC is the Diffusion-Chemisorption constant (mg g −1 min −n ).q e,cal,DC is the predicted adsorbate adsorbed onto the adsorbent at equilibrium (mg g −1 ) for the Diffusion-Chemisorption kinetic adsorption model.In addition, column C (q t,cal ) presents the values of q t at time t, which were computed from the built function of the two-parameter kinetic adsorption modes.It can be seen in Equations ( 2), ( 3), (7), and (8) or in the formula array as presented in Tables 2-6 2-6, it can be observed that the q t,cal calculations were different, which affected the statistical and model parameter results.It is suggested that the statistical and model parameter results depend on the built-in function and the kinetic adsorption model.To determine the best-fitting nonlinear kinetic model for adsorption data, their goodness of fit was evaluated using a commonly used error function, and lower values of these error functions indicate better fits, as shown in Tables 2-6 in column H-K.The results of the two-parameter kinetic adsorption models found that the PFO model (Table 2) indicates SSR (17.465), k 1 (0.056), q e,PFO (32.546),R-square (0.9877), Adjust R-square (0.9867), SSE (17.465),Chi-sq (1.284), ARE (1.982), RMSE (0.078), HYBRID (2.249), MPSD (19.807),NSD (111.692), and EABS (10.114).It can be seen that the coefficient of determination R-square and the adjusted R-square was close to 1 for a fitted kinetic model.This indicates that the model provides an excellent fit to the experimental data.In other words, the values close to 1 (approaching 1) mean that the model's predictions are very close to the actual experimental data points, suggesting that the chosen kinetic model is an excellent representation of the adsorption process in comparison to all two parameter kinetic models.The PFO (Lagergren) kinetic adsorption model suggests that the adsorption process occurs uniformly or in a well-mixed manner on surfaces like the homogeneous site.It means that the concentration of the basic dye (molecules or particles being adsorbed) was relatively constant throughout the fluid in contact with the surface of the magnetic nanosorbent.However, the PFO model is not able to explain all adsorption mechanisms or basic dye removal due to the controlling mechanism being affected by the experimental condition [50].In addition, the PFO model is not applicable to the entirety of the adsorption reaction, as the adsorption rate declines until it reaches maximum capacity, resulting in zero rate at equilibrium [21,51].Therefore, various kinetic models and different water pollutants were developed, and three-parameter kinetic adsorption models were required in the interpretation of the adsorption mechanism, as the data shows in Tables 7-10.

Three-Parameter Kinetic Adsorption Models
Tables 7-10 presents three-parameter kinetic adsorption models for experimental data and nonlinear kinetic adsorption statical results from Microsoft Excel Solver's parameter function.The three-parameter kinetic adsorption models are mathematical expressions used to describe the process of adsorption, which is the adherence of molecules or ions from a fluid (basic dyes) onto a surface.These models incorporate three parameters to represent the adsorption process more accurately than simpler two-parameter models.The model parameter kinetic adsorption models such as q t , q e , k 1 , k 2 , α, k av , n av , k Gen , n Gen (Column I), and statistical results (column K) were computed via Microsoft Excel Solver's parameter function, as available in Microsoft Excel.The parameter kinetic adsorption models were evaluated and analyzed for goodness of fit.It can be seen that the nonlinear regression results of FL-PFO stipulate the best fitting due to a mathematical model fitting of a set of experimental or observed data.FL-PFO indicated small values of R-square (0.9951, close to 1), Adjust R-square (0.9943, close to 1), SSE (6.887), Chi-sq (0.368), ARE (0.404), RMSE (0.758), HYBRID (0.514), MPSD (3.266), NSD (70.139), and EABS (7.592).General (rational) Order nonlinear kinetic-adsorption statical results were also provided as the best fitting, as they were better than FL-PSO and Avrami Fractionary-Order, respectively.The FL-PFO indicated that diffusion through micropores is the rate-controlling mechanism [52,53]; it suggests that the rate at which a substance (such as an adsorbate, basic dyes) moves or diffuses through small micropores or mesopores within a solid material/magnetic nanosorbent is the limiting factor in the overall process [54].This finding can have implications in various fields, including adsorption processes, chemical reactions, and transport phenomena [55].This could lead to a slower overall adsorption process, especially if the micropores are highly tortuous or if the substance has a relatively low diffusion coefficient.This might involve using materials with larger pores, modifying the surface chemistry to reduce interactions, or adjusting the process conditions to promote more efficient transport.Therefore, it is always a valuable insight when the rate-controlling mechanism is identified, as it provides actionable information for improving process efficiency or designing materials.Figure 4 illustrates the potential mechanisms that could occur during the adsorption process of Methylene Blue (MB)/basic dye onto the magnetic nanosorbent material.also provided as the best fitting, as they were better than FL-PSO and Avrami Fractionary-Order, respectively.The FL-PFO indicated that diffusion through micropores is the ratecontrolling mechanism [52,53]; it suggests that the rate at which a substance (such as an adsorbate, basic dyes) moves or diffuses through small micropores or mesopores within a solid material/magnetic nanosorbent is the limiting factor in the overall process [54].This finding can have implications in various fields, including adsorption processes, chemical reactions, and transport phenomena [55].This could lead to a slower overall adsorption process, especially if the micropores are highly tortuous or if the substance has a relatively low diffusion coefficient.This might involve using materials with larger pores, modifying the surface chemistry to reduce interactions, or adjusting the process conditions to promote more efficient transport.Therefore, it is always a valuable insight when the rate-controlling mechanism is identified, as it provides actionable information for improving process efficiency or designing materials.Figure 4 illustrates the potential mechanisms that could occur during the adsorption process of Methylene Blue (MB)/basic dye onto the magnetic nanosorbent material.However, it is important to note that while these three-parameter models can provide a better fit to experimental data as compared to simpler models, adsorption processes can be quite complex and may involve multiple mechanisms.The selection of an appropriate model should be based on the experimental system and the underlying assumptions that best match the observed behaviour.

Comparison of Kinetic Adsorption Model Parameters and Error Functions with Advanced Program Tools
Nonlinear two-or three-parameter kinetic adsorption models are mathematical expressions used to describe adsorption processes where two or three parameters are involved and the relationship between these parameters is nonlinear.These models are used to fit experimental adsorption data and understand the dynamics of adsorption systems where the rate of adsorption or the amount of adsorbate adsorbed changes nonlinearly with time.Fitting these nonlinear models to experimental data requires specialized nonlinear regression techniques.Software tools and optimization algorithms can be used to estimate the parameters of the models that best describe the observed data.It is important to note that the selection of the appropriate model and the interpretation of the parameter values should be done carefully, taking into consideration the physical and chemical characteristics of the system being studied.The various software tools for advanced calculations and statistical analysis, such as Microsoft Excel, MATLAB, and OriginPro, have strengths in different areas of data analysis and modeling.All the tools offer a variety of mathematical and statistical functions for data manipulation, analysis, and modeling; this depends on the specific needs of analyses-performing operations such as curve fitting, regression analysis, hypothesis testing, data transformation, and more.Microsoft Excel is a widely used spreadsheet software that is versatile for data analysis, calculations, and simple statistical analysis.It can perform calculations, create charts and graphs, and use functions for basic statistics like mean, median, and standard deviation.However, Excel may have limitations when it comes to more complex mathematical operations or specialized statistical analyses.Therefore, the built-in function of Microsoft Excel can be useful for various calculations and statistical analyses that are evaluated in comparison with MATLAB and OriginPro such as basic mathematical functions, statistical functions regression and trend analysis, and array formulas.
Table 11 presents a comparison of using three software tools (Microsoft Excel, MATLAB and OriginPro) for the kinetic adsorption models.Virtually identical results in statistical analysis, particularly when fitting models, ensure that the fit is good.Achieving identical results across different statistical software or tools can be challenging due to variations in algorithms, numerical precision, and implementation details.In practice, what often matters more than getting identical results is getting results that are consistent and meet the objectives of the experimental analysis.If the fits are reasonably close and provide meaningful insights, the model may be considered acceptable even if the results are not exactly identical.Therefore, two-or three-parameter kinetic adsorption models were brought to be discussed and explained using the statistical results and parameters of each kinetic adsorption model, as shown in Table 11.Microsoft Excel, MATLAB and OriginPro provide all the model parameters with the R-sq, Adj R-sq, and SSE statistical results.The results found that the R-sq and Adj R-sq were different for all kinetic models, while the SSE and all the model parameter results were very much the same.In terms of Chi-sq statistical results, it was found that MATLAB did not provide a good software tool.On the other hand, Microsoft Excel and MATLAB provided the RMSE, while OriginPro is not available in the software tool.
In a comparison of the model parameters, FL-PFO gave a q e (33.09 mg g −1 ), which was close to the experimental data (32.76 mg g −1 ) and closer to the experimental data than in the other kinetic adsorption models.The R-sq (0.9951) and Adj R-sq (0.9943) were close to 1 with fewer error functions such as SSE (6.89), Chi-sq (0.368), ARE (0.404), RMSE (0.758), HYBRID (0.514), MPSD (3.266), NSD (70.139), and EABS (7.592), which indicated the goodness of fit.It can be concluded that Microsoft Excel fulfilled all statical results and model parameters; however, the built-in function of the error functions is the main point.These functions are often used in optimization algorithms to fine-tune model parameters to minimize errors.Microsoft Excel can be a valuable tool for statistical analysis and modeling, but it is important to ensure that it is used correctly and to have an understanding of the role of error functions in assessing and improving kinetic adsorption models.Familiarity with error functions is essential for effective model evaluation and parameter optimization.

Application of Akaike's Information Criterion for the Selected Kinetic Adsorption Model
In this study, it has been widely observed in the literature that increasing the number of parameters in a model tends to lead to better correlations.However, we have employed Akaike's information criterion (AIC) [56,57], as suggested by Akaike in 1998, to assess the effectiveness of adsorption kinetic models while disregarding the influence of the number of parameters.In this context, the model with the lowest AIC value is considered to be the most suitable.To evaluate AIC, we require knowledge of the error Sum of Squares (SSE, as shown Table 11), which is computed by summing the squares of the differences between the experimental and predicted values.This can be mathematically expressed as follows Here, 'K' denotes the number of parameters, and 'N' represents the number of data points.Upon examining Table 11, it is evident that the FL-PFO method yields lower AIC values.However, if the dataset contains fewer than 40 data points, it is recommended to employ AIC corrected .This correction is defined as follows: Using corrected Akaike's information criterion (AIC corrected ), it is determined that the FL-PSO kinetic adsorption model is the most effective, with a value of −3.4879 (closer to zero as compared to other AIC corrected values, Figure 5, and Table 12), while the Elovich kinetic adsorption model displayed the highest value of 29.6605.This underscores the efficiency of the FL-PSO kinetic adsorption model in correlating the kinetic data.In this study, it examined the adsorption of basic dye compounds.It found that basic dyes primarily undergo both physical and chemisorptions [36].The FL-PFO inherently combines these features, allowing it to accurately correlate both energetically homogeneous and heterogeneous solid surface systems, providing another reason for its exceptional performance.The model proves highly effective in characterizing kinetics in this specific context.Figure 6 was plotted to analyze the data visually and to compare the shape, trends, and patterns in the experimental data with those in the predicted data.In addition to visual inspection, it can perform quantitative assessments such as calculating correlation coefficients, the Root Mean Square Error (RMSE), or other statistical measures to quantify the agreement between the two datasets, as indicated in Table 11.These graphs show the plot of the FL-PFO kinetic adsorption model that confirms adsorption mechanism.It can be concluded that Microsoft Excel provides an easy software tool that offers a wide range of applications in various fields, especially environmental engineering, to assess environmental impacts, evaluate scenarios, and make predictions based on different input conditions.Figure 6 was plotted to analyze the data visually and to compare the shape, trends, and patterns in the experimental data with those in the predicted data.In addition to visual inspection, it can perform quantitative assessments such as calculating correlation coefficients, the Root Mean Square Error (RMSE), or other statistical measures to quantify the agreement between the two datasets, as indicated in Table 11.These graphs show the plot of the FL-PFO kinetic adsorption model that confirms adsorption mechanism.It can be concluded that Microsoft Excel provides an easy software tool that offers a wide range of applications in various fields, especially environmental engineering, to assess environmental impacts, evaluate scenarios, and make predictions based on different input conditions.11.These graphs show the plot of the FL-PFO kinetic adsorption model that confirms adsorption mechanism.It can be concluded that Microsoft Excel provides an easy software tool that offers a wide range of applications in various fields, especially environmental engineering, to assess environmental impacts, evaluate scenarios, and make predictions based on different input conditions.

Conclusions
Conducting kinetic adsorption studies on nanosorbents is a valuable area of research that helps researchers understand how quickly substances are adsorbed onto nanomaterials along with the adsorption mechanism.Basic dye (methylene blue) was chosen as a model solute to predict the adsorption capacities of an adsorbent material, which is a common and valuable approach in adsorption studies.Kinetic adsorption studies provide insights into the material's adsorption capabilities and can inform its potential use in practical applications.Applying nonlinear regression for standardizing experimental data is a useful approach when dealing with complex relationships that cannot be adequately captured by linear models through Microsoft Excel's built-in function.It allows users to fit a nonlinear mathematical function to experimental data, estimate parameters, and potentially standardize the data within the modeling process to gain insights into the underlying processes.Among the kinetic adsorption models, FL-PFO (33.09 mg g −1 of predicted data, close to the experimental data of about 32.76 mg g −1 ) was demonstrated to be the best-fitting, which was closer to the experimental data as compared to other kinetic adsorption models and had fewer error function results.This suggests that the rate at which a substance diffuses through small micropores or mesopores within a nanosorbent is the limiting factor in the overall process.An AIC corrected value of −3.487 for the FL-PFO kinetic model indicates a favorable model fit.This insightful analysis is highly recommended for evaluating any adsorbate-adsorbent system.It aids in the selection of an appropriate kinetic model and significantly improves the correlation of adsorption data, thereby enhancing the understanding of the adsorption process.In conclusion, these findings suggest that Microsoft Excel, when equipped with the Solver Function and suitable spreadsheet methods, can be a robust tool for predicting adsorption behavior using various kinetic adsorption models for basic dye removal.This information can be valuable for researchers and practitioners in fields such as environmental science, chemistry, and materials science where adsorption studies are common.
Author Contributions: Conceptualization, methodology, validation, investigation, formal analysis, resources, writing and funding acquisition, S.W. and A.W.; formal analysis and resources, K.S., T.K. and S.H.; resources N.C., J.R., P.P., S.I., P.T. and N.S.All authors have read and agreed to the published version of the manuscript.

Figure 1 .
Figure 1.Laboratory experimental steps for kinetic adsorption studies.

Figure 2 .
Figure 2. Steps for using Microsoft Excel Solver's spreadsheet-based program as a tool for predicting the experimental data of basic dye loaded onto the magnetic nanosorbent.

Figure 2 .
Figure 2. Steps for using Microsoft Excel Solver's spreadsheet-based program as a tool for predicting the experimental data of basic dye loaded onto the magnetic nanosorbent.

Figure 3 .
Figure 3. Steps of the Microsoft Excel Solver Function;: (a) plotted graph of the experimental dataset, (b) Solver parameter, (c) plotted graph after running the algorithm, and (d) Solver results.

Figure 3 .
Figure 3. Steps of the Microsoft Excel Solver Function;: (a) plotted graph of the experimental dataset, (b) Solver parameter, (c) plotted graph after running the algorithm, and (d) Solver results.

Figure 4 .
Figure 4.The plausible mechanism of Methylene Blue (MB)/basic dye adsorption onto the magnetic nanosorbent material.

Figure 5 .
Figure 5. Overall mean AICcorrected for the kinetic adsorption models.

Figure 5 .
Figure 5. Overall mean AIC corrected for the kinetic adsorption models.

Figure 5 .
Figure 5. Overall mean AICcorrected for the kinetic adsorption models.

Figure 6
Figure6was plotted to analyze the data visually and to compare the shape, trends, and patterns in the experimental data with those in the predicted data.In addition to visual inspection, it can perform quantitative assessments such as calculating correlation coefficients, the Root Mean Square Error (RMSE), or other statistical measures to quantify the agreement between the two datasets, as indicated in Table11.These graphs show the plot of the FL-PFO kinetic adsorption model that confirms adsorption mechanism.It can be concluded that Microsoft Excel provides an easy software tool that offers a wide range of applications in various fields, especially environmental engineering, to assess environmental impacts, evaluate scenarios, and make predictions based on different input conditions.

Figure 6 .
Figure 6.Experimental data and predicted data plotted using the results of Microsoft Excel.

Table 1 .
Experimental data at time t for basic dyes obtained from a batch system that adsorbed onto the magnetic nanosorbent.

Table 2 .
Input of the experimental data and run of Microsoft Excel Solver's spreadsheet-based program for the PFO kinetic adsorption model as an example model for data fitting.

Table 2 .
Input of the experimental data and run of Microsoft Excel Solver's spreadsheet-based program for the PFO kinetic adsorption model as an example model for data fitting.

Table 3 .
Experimental dataset for time t, q t,exp , q t,cal , Residual, Residual 2 , SSR, k 1 , and q e .

Table 4 .
Experimental data and PSO nonlinear kinetic adsorption statical results from the Microsoft Excel Solver's parameter function.

Table 5 .
Experimental data and Elovich nonlinear kinetic adsorption statical results from the Microsoft Excel Solver's parameter function.

Table 6 .
Experimental data and Diffusion-Chemisorption nonlinear kinetic adsorption statical results from the Microsoft Excel Solver's parameter function.

Table 7 .
Experimental data and FL-PFO nonlinear kinetic adsorption statical results from the Microsoft Excel Solver's parameter function.

Table 8 .
Experimental data and FL-PSO nonlinear kinetic adsorption statical results from the Microsoft Excel Solver's parameter function.

Table 9 .
Experimental data and Avrami Fractionary-Order nonlinear kinetic adsorption statical results from Microsoft Excel Solver's parameter function.

Table 10 .
Experimental data and General (rational) Order nonlinear kinetic-adsorption statical results from Microsoft Excel Solver's parameter function.

Table 11 .
Comparison of using various software tools for the kinetic adsorption models.
Note: The sign of "-" means not available in the software tool.

Table 12 .
Akaike's information criterion for eight kinetic adsorption models.