Optimal coinsurance rates for a heterogeneous population under inequality and resource constraints. (2nd January 2019)