The basic idea of the objective function is to minimize the sum of loss functions for all the domains, rather than one domain at a time.
by adjusting the in-domain and general-domain feature weights, the translation quality is expected to be good across different domains.