The end is that of maximizing happiness. Suppose now that the best means of serving the end of maximizing happiness is to perform a morally wrong act. Surely Mill is committed to sacrificing morality in the interests of serving this end. Mill's principle of utility is the sole ultimate principle of the Art of Life, and it must therefore be the final court of appeal in all conflicts between other principles belonging to the various departments of the Art of Life. If the principle of utility requires the maximization of happiness, then morality must give way if it hinders this ultimate end.
Morality is only one generally effective means of promoting the end of maximizing happiness.
There is nothing in Mill's analysis of the concept of morality to show that the requirements of morality must take precedence over all non-moral considerations. In any case, the question of what one should ultimately do has to be settled in the light of one's substantive values. Thus we may not have a moral obligation always to maximize happiness, but from this alone it does not follow that we should not always act to maximize happiness, even when this involves the violation of our moral obligations. References Lyons, David. Mill, John Stuart.