This chapter considers a case with a more general surplus function. It shows that when the scalar-product surplus is replaced by a more general function, much of the machinery put in place in Chapter 6 goes through. In particular, it is possible to generalize convex analysis in a natural way, and to obtain generalized notions of convex conjugates, of convexity, and of a subdifferential that are perfectly suited to the problem. A general result on the existence of dual minimizers is given, as well as sufficient conditions for the existence of a solution to the Monge problem.