-
大小: 3KB文件类型: .m金币: 1下载: 0 次发布日期: 2021-01-10
- 语言: Matlab
- 标签: VIP; Projection
资源简介
Projection Algorithm of VIP for Dynamic Traffic Assignment
代码片段和文件信息
function flow_choice()
% global variation
global ts;
global con;
%*********************************************************
% initial map : 5 nodes 5 links destination is node 5!
% init OD with origin demand: 5 nodes and 30 time span
od=zeros(530);
od(11)=14; od(12)=9; od(14)=13;
od(21)=14; od(22)=10; od(24)=12;
od(41)=5; od(42)=4; od(43)=2; od(44)=1;
% initial map connection
con=[0 1 0 0 0
0 0 2 3 0
0 0 0 4 0
0 0 0 0 5
0 0 0 0 0];
% init time-space: 5 links and 30 time span each cell has struct:{influx flow cost}
% init link state structure
linkstate=struct(‘influx‘0‘flow‘0‘cost‘1);
ts=cell(530);
for i_1=1:5
for j_1=1:30
ts{i_1j_1}=linkstate;
end
end
%Test
%sp =
- 上一篇:PMSM PI矢量控制
- 下一篇:信号采样与重建matlab程序
评论
共有 条评论