Software Open Access

"Model-based design of smart active packaging systems with antimicrobial activity" Matlab codes

Miguel Mauricio Iglesias; Carlos Vilas; Míriam R. García

This repository contains the Matlab codes used in the Results section of the paper  "Model-based design of smart active packaging systems with antimicrobial activity".

The different optimizations are performed using Differential Evolution (DE) algorithm. The Matlab codes can be freely downloaded from:

http://www1.icsi.berkeley.edu/~storn/code.html

In order to use DE for solving the problems described in the manuscript, users have two alternatives:
- Add the DE path to the Matlab path
- Copy the DeMat folder in the same directory as the folders containing the case studies codes.

There are four folders:

    Folder case1_onlySafety --> It contains the codes for the first case study where only safety constraints are considered. The main file to perform the optimization is mainOptDesign.m. In this file the user may select the number of layers to be considered (line 20) and the configuration of the active packaging (lines 21-38). Other parameters (such as bounds on the decision variables or constraints) can be chosen/modified in the rest of the code. However, doing so would imply that the solution may differ from the one presented in the manuscript. Folder "results" contain the optimal design results presented in the manuscript.

    Folder case2_safetyQuality --> It contains the codes for the second case study where both safety and quality constraints are considered. The main file to perform the optimization is mainOptDesign.m. In this file the user may select the number of layers to be considered (line 20) and the configuration of the active packaging (lines 21-38). Other parameters (such as bounds on the decision variables or constraints) can be chosen/modified in the rest of the code. However, doing so would imply that the solution may differ from the one presented in the manuscript. Folder "results" contain the optimal design results presented in the manuscript.

    Folder case3_simulationsBattery --> It contains the codes for the third case study where the effect of perturbations on the storage temperature as well as the effect of package storage after manufacturing are studied. Case3a considers the effect of perturbations on the storage temperature (50 randomly generated temperature-time profiles). Main file to run the simulations is "mainRandomTprofiles.m". Function "createRandomTprofiles.m" can be used to generate random profiles in the storage temperature, however the ones used in the manuscript are already stored in "Tprofiles.mat". Case3b considers the effect of packaging storage after manufacturing. Different storage times are considered (t=0,3,6,9,...,30 days). File "mainPackage.m" computes the distribution of carvacrol in the layers for the different storage times. Then, such distributions are used in "mainDifferentInitCarv.m" as initial conditions for the simulation using the food matrix.

 

    Folder functions --> contains different Matlab functions, shared by the three case studies. These functions implement different parts of the model, such as bacterial growth, nucleotide degradation, Fick derivatives, etc.

This is an updated version. Codes were modified to include partition coefficients between packaging layers. It also includes a new case study in which, package storage time after manufacturing is considered.
Files (469.6 kB)
Name Size
codesSmartPackaging.zip
md5:4b3d05a27b34689e2b13e02aa2b00b74
469.6 kB Download
197
31
views
downloads
All versions This version
Views 197170
Downloads 3129
Data volume 13.7 MB13.6 MB
Unique views 152139
Unique downloads 2826

Share

Cite as