The codes presented in this repository correspond to the work developed in
Virtual Representation of Fresh Produce Washing in 4.0 Industry: Modelling and Calibration through optimal experimental design
The script presented here are built in the Matlab environment. Additionally, the AMIGO2 toolbox has been used to perform optimization and optimal experimental design. It can be downloaded from sites.google.com/site/amigo2toolbox, and it should be placed in the same location that contains the repository files ( see below section About the Repository ).
Scripts starting with prefix Run_sec[tag] is related to a study section of the work article submitted with this code. The tag correspondence is stated as follows :
[ sec311 ] Water contamination and dilution rates in the industry,
[ sec312 ] Inactivation rates in chlorine-based sanitation,
[ sec313 ] Free chlorine dynamics,
[ sec320 ] Optimal experimental design to estimate unknown model parameters in the industry.
Hence, to reproduce the desired study, the user only needs to run the corresponding Run_sec[tag] script. An additional script that handles all studies called 'RUN_ALL.m' has been included to perform all studies from one call.
The results and plots obtained from each study can be found in the Results folder inside the repository directory (see About the Repository). A subfolder within Results is created to store the results of each study separately, these subfolders could be identified by the sec[tag] identifier.
| Item | Description |
|---|---|
| [Not in Repository] Folder: AMIGO2_[version] | Place here the AMIGO2 toolbox folder |
| Folder: AMIGO_changes | Changes of AMIGO2 toolbox |
| Folder: Exp_data | Experimental data and preprocessing scripts |
| Folder: OED_codes | Scripts required to perform Optimal Experimental Design study |
| Folder: Pre_optims | Previously computed optimizations |
| Folder: Results | Saved results location |
| Script: RUN_ALL.m | Script to perform all parameter estimations |
| Script: Run_sec311_PE_contamination.m | Script to perform Parameter Estimation for: Water Contamination |
| Script: Run_sec312_PE_inactivation.m | Script to perform Parameter Estimation for: Inactivation rates |
| Script: Run_sec313_PE_Beta_and_Gamma.m | Script to perform Parameter Estimation for: Free Chlorine dynamics |
| Script: Run_sec320_OED.m | Script to perform Optimal Experimental Design |
| File: LICENSE | |
| File: readme.md | This file |
-
The AMIGO_changes folder include changes of AMIGO2 toolbox to:
-
allow the use of error_data for OED
-
penalize OED cost functions with high microbial contamination
-
enable multi-experiment estimation with more than 20 experiments
-
-
Exp_data includes experimental data of industrial washing processes
-
Pre_optims includes the best solutions for each of the problems. As some optimisations take hours and many tests of computations, we start each optimisation from optimum. Nevertheless, the complete optimisation can be performed by the user if desired by increasing the computation time and providing a non-optimum initial guess.
-
WARNING: In case the user decide to use a different version of AMIGO2, the call to the toolbox in any Run_sec[tag] code must be modified. Example: To run the 2025 version, the folder must be placed following the repository scheme, and the proper call codeline is: AMIGO2_2025 run AMIGO2_R2025/AMIGO_Startup.m