www.pudn.com > TrdeoffinTDMsystem.rar > conFun_log.m
function [C, Ceq] = conFun_log(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_Log(N, Th);