where i, j are lattice sites, σ i is the cell at site i, τ(σ) is the cell type of cell σ, J is the coefficient determining the adhesion between two cells of types τ(σ),τ(σ'), δ is the Kronecker delta, v(σ) is the volume of cell σ, V(σ) is the target volume, and λ is a Lagrange multiplier determining the strength of the volume constraint.