Gibbs' principle for the lattice-kinetic theory of fluid dynamics.