Let z=x+iy∈H:={z=x+iy∈C:y>0} and θ(s;z)=∑(m,n)∈Z2e−syπ∣mz+n∣2 be the theta function associated with the lattice Λ=Z⊕zZ. In this paper we consider the following pair of minimization problems Hminθ(2;2z+1)+ρθ(1;z),ρ∈[0,∞),Hminθ(1;2z+1)+ρθ(2;z),ρ∈[0,∞),where the parameter ρ∈[0,∞) represents the competition of two intertwining lattices. We find that as ρ varies the optimal lattices admit a novel pattern: they move from rectangular (the ratio of long and short side changes from 3 to 1), square, rhombus (the angle changes from π/2 to π/3) to hexagonal; furthermore, there exists a closed interval of ρ such that the optimal lattices is always square lattice. This is in sharp contrast to optimal lattice shapes for single theta function (ρ=∞ case), for which the hexagonal lattice prevails. As a consequence, we give a partial answer to optimal lattice arrangements of vortices in competing systems of Bose-Einstein condensates as conjectured (and numerically and experimentally verified) by Mueller-Ho \cite{Mue2002}.