A situation in which there are competing interactions in a system. For example, in a spin glass the magnetic atoms are subject to both ferromagnetic and antiferromagnetic interactions. Frustration also occurs in the folding of large polymer molecules due to parts of the molecule getting in each other’s way. It is thought that proteins fold readily to specific shapes because they have evolved to minimize this type of steric frustration.