⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sim_optimal.m

📁 best routing protocol
💻 M
字号:
function optm = sim_optimal(topo)S = load(topo);[o_dist o_nexthop] = ...    allpair_dijkstra(S.D, 1:S.n_nodes, 1, 'sim-optimal-tmp.mat');optimal_load = get_nexthop_load(o_nexthop, S.random_pairs);pair_indices = S.random_pairs(:,1)+(S.random_pairs(:,2)-1)*S.n_nodes;optimal_dist = o_dist(pair_indices);optm = struct(...    'optimal_dist', optimal_dist,...    'optimal_load', optimal_load);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -