Consider a strained layer heterojunction consisting of two semiconductor layers of thicknesses hA and hB, and strain-relaxed lattice constants aA and aB. Compute, as a function of these parameters and the elastic parameters uA, uB, vA, and vB, the in-plane lattice constant a|| that will minimize the total strain energy in the heterostructure.