Fig. 1: Genome encoding in the EA.
From: Computational design for 4D printing of topology optimized multi-material active composites

a 2D array of materials distribution and (b) its corresponding flattened 1D list as per usage (seen as a concatenation of each line from left to right following the X direction and from the bottom to the top following the Y direction).