The maximum entropy variation and the calculation of the lattice constant