Click here to download the Matlab code and related files as a .zip file. This is related to lattice structure optimization.