Variable optimization for the formation of three-dimensional self-organized heart muscle