Variational Approach to Ordered Structures