S = f_s(EX, ED, U_s) where EX = f_ex(ED,U_ex)