Optimizing of sums and products of linear fractional functions under linear constraints