We give the solution of the generalized form of the problem of minimiz
ing the entropy with respect to a given probability measure under cons
traints. This solution is unique under certain conditions. In a partic
ular case, we retrieve the form of the transition function for a finit
e probabilistic automaton. These results are important in large deviat
ion theory and statistical mechanics.