www.pudn.com > TrdeoffinTDMsystem.rar > conFun_gini.m
function [C, Ceq] = conFun_gini(w, N, aimFair, mean, sigma)
% 假设第一个用户的权值为1
ww = [1, w];
for i = 1:N
Th(i) = quadl(@IntegralGene, -20, 100, 10^(-12), [], N, ww, mean, sigma, i);
end
C = -1;
Ceq = aimFair - Fairness_Gini(N, Th);