链路调度matlab程序适合初学者


链路调度matlab程序(适合初学者)链路调度matlab程序(适合初学者)
资源截图
代码片段和文件信息
%to update the imlicit cost of each link
%s is the stepsize for updating the implicit cost
function q=costupdate(Tcountn)
%n is user_numand T is the timeslotcount is the cycle times
global routing
global cost
global rate
global schedule_set
global user
global link
global stepsize
global capacity

for i=1:1:length(link)
    m=0;
    for j=1:1:n
        user(j)=poisson(jcountT);
       m=m+routing(ji)*user(j)*rate(j)/capacity(i)*T;
    end
       if schedule_set(i)==1
        m=m-T;
       end
        q(i)=cost(i)+stepsize*m;
        if q(i)<0
            q(i)=0;
        end
end
   

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)