当前位置: 首页 > news >正文

php网站留言板怎么做企业网络规划与设计

php网站留言板怎么做,企业网络规划与设计,动漫制作专业好不好,邢台哪儿做wap网站目录 1 主要内容 2 部分代码 3 程序结果 4 下载链接 1 主要内容 该程序参考《基于动态交通信息的电动汽车充电负荷时空分布预测》和《基于动态交通信息的电动汽车充电需求预测模型及其对配网的影响分析》文献模型,考虑私家车、出租车和共用车三类交通工具特性和…

目录

1 主要内容

2 部分代码

3 程序结果

4 下载链接


主要内容

该程序参考《基于动态交通信息的电动汽车充电负荷时空分布预测》和《基于动态交通信息的电动汽车充电需求预测模型及其对配网的影响分析》文献模型,考虑私家车、出租车和共用车三类交通工具特性和移动负荷特性,实现了基于动态交通信息的电动汽车充电负荷时空分布预测。将负荷预测情况和33节点配电网络进行结合,形成交通网-配电网交互模型,采用牛拉法进行潮流计算。程序采用matlab编写,注释清晰,方便学习!

  • 交通网-配电网交互模型
路网模型参考下图:

很多文献都会用到路网结合模型,这也是电动车研究领域的一个热点方向,通过路网模型更能精确定位电能需求点以及对配电网络的影响。

  • 动态交通路网模型

动态交通网络模型采用图论法进行建模,拓扑结构示意图如下:

具体的数学模型表达式为:

式中:为交通路网;表示图 所有节点的集合;表示图 所有路段的集合;为路段权值的集合,即道路路阻;表示划分的时间段集合,即将全天划分为 m个时间段。

交通网络生成代码如下:

%%动态交通路网模型:采用图论分析方法建模
%G为交通路网(图);V表示图G所有节点的集合,本文设置32个配电网节点;E表示所有路段的集合;W为路段权重的集合,即道路路阻;K表示划分的时间段集合,即将全天划分为m个时间段。
%路段权值W表示道路出行代价,可采用路段长度、通行速度、行程时间等权值进行量化研究
%在城市路网中,路口交叉节点多设置信号灯进行管控,车辆行驶既受到路段阻抗影响,又在交叉节点产生时间延误。
%因此,城市道路路阻可表示为W(t)=CV(t)+RV(t);CV(t)表示节点阻抗模型,RV(t)表示路段阻抗模型
%依据城市交通状况划分标准,饱和度 S 评价指标:畅通(0<S≤0.6)、缓行(0.6<S≤0.8)、拥挤(0.8<S≤1.0)以及严重拥堵(1.0<S≤2.0)。
%道路交叉口和路段通行能力不同,可以得到不同饱和度对应的路段阻抗和节点阻抗模型
%RV(t)路段阻抗模型,通过饱和度S=Q/C,(Q为路段交通流量,C为通行能力,这里是随机生成S所以不用管Q与C的问题);t0为零流量行程时间;alpha beta为阻抗影响因子,来计算。
%CV(t)节点阻抗模型,通过信号周期c,绿信比lamda,路段车辆到达率q,来计算
%针对RV(t)路段阻抗和CV(t)节点阻抗模型中,饱和度S是唯一变量,其余为道路规划固定参数,因此,将RV(t)和CV(t)合并可得到道路路阻阻抗模型W(t)=CV(t)+RV(t)。
​
%% alpha beta 阻抗影响因子 t0-零流量行程时间,计算RV(t)路段阻抗模型
alpha=1.3;
beta=1.2;
t0=10;
​
%% 信号周期c,绿信比lamda,路段车辆到达率q,计算CV(t)节点阻抗模型
c=30;
lamda=0.7;
q=0.8;
​
%% 2【路网结构】 邻接矩阵(此时建立的仅是结构,而为给每条边赋以路段权值W)
LJ=zeros(32,32);
L=[1 2;2 3;3 9;1 4;2 6;3 7;4 5;5 6;6 7;7 8;8 9;4 10;5 11;6 12;7 13;10 11;11 12;12 13;13 14;8 21;9 26;10 15;11 16;12 17;12 18;14 20;15 16;16 17;17 18;18 19;19 20;20 21;15 32;16  27;17 22;18 23;19 24;20 24;21 25;32 27;27 22;22 23;23 24;24 25;25 26;23 28;24 29;25 30;26 31;27 28;28 29;29 30;30 31];
% 矩阵序号法写邻接矩阵
LJ(L(:,2)*32-32+L(:,1))=1; 
LJ(L(:,1)*32-32+L(:,2))=1;
%
figure(1)
G=graph(LJ,'upper');%根据带权邻接矩阵生成无向图
% plot(G);
% title('无向图')
plot(G,'EdgeLabel',G.Edges.Weight)
title('标定权重的无向图')
​
%% 3【阻抗模型权重W】(为给每条边赋以路段权值W)
% 1) 随机生成S权重   
% 2) 或者 输入shortestpath函数求路径(这一项操作没有便要做,不知道作用是为何)
S=zeros(32,32);
S=2*rand(32,32);
for i=1:32for j=1:32if LJ(i,j)==1if S(i,j)<=1 Rv(i,j)=t0*(1+alpha*S(i,j)^beta);elseRv(i,j)=t0*(1+alpha*(2-S(i,j))^beta);endif S(i,j)<=0.6 Cv(i,j)=0.9*(c*(1-lamda)^2/2/(1-lamda*S(i,j))+S(i,j)^2/2/q/(1-S(i,j)));elseCv(i,j)=c*(1-lamda)^2/2/(2-lamda*S(i,j))+1.5*(S(i,j)-0.6)*S(i,j)/(2-S(i,j));endW(i,j)=Rv(i,j)+Cv(i,j);elseW(i,j)=0*1e3;endend
end
W(find(W>50))=50;
figure(2)
bar3(W)
%
G=graph(W,'upper');
% plot(G);
% title('无向图')
plot(G,'EdgeLabel',G.Edges.Weight)
title('标定权重的无向图')
​
%[path,distance]=shortestpath(G,1,6)      %这行代码在这块没用,是多余的
%% 4【路程模型权重L】(作为计算耗电量中的一个参数)
RL=10+10*rand(32,32);
RL=RL.*LJ;

部分代码

load dataTRN.mat;
load dataEV.mat;
load dataWq.mat;
G=graph(W,'upper');                %生成路-网耦合图G,W是每条边的权重值,W为32*32阶矩阵
Charge=zeros(size(Mcar,1),5);      %生成一个size(Mcar,1)=1000*5的零矩阵,其中size(Mcar,1)=1000。
​
TP_carnumber=zeros(size(W,1),3);   %生成一个size(W,1)=32*3的零矩阵,W是每条边的权重值,W为32*32阶矩阵,TP_carnumber(x,1)、TP_carnumber(x,2)、TP_carnumber(x,3)应该是每条边上/每个交通节点私家车1,公交车2,私家车3的数量
Pcharge=zeros(24,3);               %生成一个24*3的零矩阵,******PCharge代表24小时内私家车1,公交车2,私家车3
Pchar_slow=12;                     %设置慢充充电功率为12KW
Pchar_fast=48;                     %设置慢充充电功率为48KW
Pntcharge=zeros(24,32);            %生成一个24*32的零矩阵,PntCharge代表24个小时内32个配网节点的供电负荷=电动汽车耗电量
%% MC
for icar=1:size(Mcar,1)             %EV的编号,从1-1000,共1000台EV,size(Mcar,1)=1000,一个for icar=1:size(Mcar,1) 循环代表把第一台EV的%1-9个特征变量(车辆编号icar、EV种类Icar_kind、EV初始位置Birthland、%目的地Destination、初始时刻tBirth1、返程时刻tBirth2、ev容量Cbat、初始soc SOC0、速度Vcar)全部采集一遍%1000个for icar=1:size(Mcar,1) 循环代表把1000台EV的%1-9个特征变量(车辆编号icar、EV种类Icar_kind、EV初始位置Birthland、%目的地Destination、初始时刻tBirth1、返程时刻tBirth2、ev容量Cbat、初始soc SOC0、速度Vcar)全部采集一遍icarIcar_kind=Mcar(icar,2);%EV种类;%size(Mcar,2)=1000Birthland=Mcar(icar,3);%EV初始位置Destination=Mcar(icar,4);%目的地tBirth1=Mcar(icar,5);%初始时刻tBirth2=Mcar(icar,6);%返程时刻Cbat=Mcar(icar,7);%ev容量SOC0=Mcar(icar,8);%初始socVcar=Mcar(icar,9);%速度TP_carnumber(Birthland,Icar_kind)=TP_carnumber(Birthland,Icar_kind)+1;%第Birthland条边/第Birthland个交通节点下,对应的第Icar_kind种车型加1,此行代码是计数的作用if   Mcar(icar,3)==Mcar(icar,4)                                       %如果EV初始位置Birthland=car(icar,3)==EV目的地Destination=Mcar(icar,4)continue                                                           %end                                                                   %[path,distance]=shortestpath(G,Birthland,Destination);                %如果EV初始位置Birthland=car(icar,3)   不等于  EV目的地Destination=Mcar(icar,4)%则输出EV初始位置Birthland=car(icar,3)与EV目的地Destination=Mcar(icar,4)最短路径path与最短距离distance%% C1 私家车if  Icar_kind==1%考虑环境温度和速度 耗电量dE=1.5*distance/Vcar+(0.21-1e-3*Vcar+1.531/Vcar)*distance;       %由最短行驶距离distance,电动汽车行驶实时车速Vcar=Mcar(icar,9),计算出EV初始位置到目的地的耗电量SOC1=SOC0-dE/0.9/Cbat;                                           %由初始soc即SOC0=Mcar(icar,8) 与 EV初始位置到目的地的耗电量 与 充电效率0.9 与 ev容量Cbat=Mcar(icar,7)SOC2=SOC1-dE/0.9/Cbat;                                           %计算出电动汽车剩余电量SOC2tdest1=tBirth1+distance/Vcar;                             %到达目的地时间(tdest1)=初始时刻+行驶时间if  SOC2<0                                                %判断私家车是否充电的条件% 触发慢充/计及排队时间Tmmc=Wq(ceil(tdest1));                                %ceil为向上取整T80=tdest1+(0.8-SOC1)*Cbat/Pchar_slow+Tmmc;           %充电到0.8EV容量时间(T80)=到达目的地时间+慢充到0.8EV容量时间+Tmmcif T800.8EV容量时间<到达第二个目的地的时间Charge(icar,2)=1;                                  %Icar_kind=Mcar(icar,2);EV种类;所以Charge(icar,2)赋值为私家车Icar_kind==1Charge(icar,3)=floor(tdest1);                      %EV初始位置Mcar(icar,3)赋值为向下取整tdest1,即32个交通节点中的一个Charge(icar,4)=ceil(T80);                          %目的地Mcar(icar,4)赋值为向上取整T80,即32个交通节点中的一个Charge(icar,5)=ceil(Pchar_slow);                   %初始时刻Mcar(icar,5)赋值为向上取整Pchar_slowPntcharge(Charge(icar,3):Charge(icar,4),Destination)=Pntcharge(Charge(icar,3):Charge(icar,4),Destination)+Charge(icar,5);%列表切片,Pntcharge(Charge(icar,3):Charge(icar,4),Destination)即为取Charge(icar,3):Charge(icar,4)所在行与Destination所在列的交叉元素elseCharge(icar,2)=1;                                  %Icar_kind=Mcar(icar,2);EV种类;所以Charge(icar,2)赋值为私家车Icar_kind==1Charge(icar,3)=floor(tdest1);                      %EV初始位置Mcar(icar,3)赋值为向下取整tdest1Charge(icar,4)=ceil(tBirth2);                      %目的地Mcar(icar,4)赋值为向上取整tBirth2,因为此时T80>tBirth2成立Charge(icar,5)=ceil(Pchar_slow);                   %初始时刻Mcar(icar,5)赋值为向上取整Pchar_slowPntcharge(Charge(icar,3):Charge(icar,4),Destination)=Pntcharge(Charge(icar,3):Charge(icar,4),Destination)+Charge(icar,5);%列表切片,Pntcharge(Charge(icar,3):Charge(icar,4),Destination)即为取Charge(icar,3):Charge(icar,4)所在行与Destination所在列的交叉元素
​

程序结果

4 下载链接

见下方!


文章转载自:
http://skillion.pwrb.cn
http://restless.pwrb.cn
http://suddenly.pwrb.cn
http://acetazolamide.pwrb.cn
http://chondrosarcoma.pwrb.cn
http://slugabed.pwrb.cn
http://fontal.pwrb.cn
http://alcazar.pwrb.cn
http://hazily.pwrb.cn
http://diatom.pwrb.cn
http://seymour.pwrb.cn
http://gestion.pwrb.cn
http://relevance.pwrb.cn
http://vaporing.pwrb.cn
http://teeth.pwrb.cn
http://subsidiary.pwrb.cn
http://assuetude.pwrb.cn
http://stye.pwrb.cn
http://undeclined.pwrb.cn
http://ascariasis.pwrb.cn
http://deferent.pwrb.cn
http://cogas.pwrb.cn
http://polyimide.pwrb.cn
http://hvar.pwrb.cn
http://injuredly.pwrb.cn
http://xylocarp.pwrb.cn
http://nerving.pwrb.cn
http://airslake.pwrb.cn
http://mashie.pwrb.cn
http://diadem.pwrb.cn
http://natsopa.pwrb.cn
http://qos.pwrb.cn
http://surprisal.pwrb.cn
http://tetrazolium.pwrb.cn
http://taittinger.pwrb.cn
http://sententiously.pwrb.cn
http://backhoe.pwrb.cn
http://spectrometry.pwrb.cn
http://happenstance.pwrb.cn
http://xenial.pwrb.cn
http://appropriately.pwrb.cn
http://psid.pwrb.cn
http://fifie.pwrb.cn
http://unobservance.pwrb.cn
http://unostentatious.pwrb.cn
http://rubredoxin.pwrb.cn
http://thylacine.pwrb.cn
http://actinide.pwrb.cn
http://kylie.pwrb.cn
http://bushranger.pwrb.cn
http://premie.pwrb.cn
http://eclecticism.pwrb.cn
http://transience.pwrb.cn
http://resinography.pwrb.cn
http://aves.pwrb.cn
http://sunbeam.pwrb.cn
http://beg.pwrb.cn
http://flossy.pwrb.cn
http://cellblock.pwrb.cn
http://likeable.pwrb.cn
http://fortify.pwrb.cn
http://immiserization.pwrb.cn
http://vandendriesscheite.pwrb.cn
http://glabrate.pwrb.cn
http://palaestra.pwrb.cn
http://bizonal.pwrb.cn
http://double.pwrb.cn
http://isoagglutinin.pwrb.cn
http://manutius.pwrb.cn
http://echolocation.pwrb.cn
http://enormous.pwrb.cn
http://besought.pwrb.cn
http://rent.pwrb.cn
http://sacque.pwrb.cn
http://fluvial.pwrb.cn
http://derned.pwrb.cn
http://snorer.pwrb.cn
http://arrestor.pwrb.cn
http://obligingly.pwrb.cn
http://saxonism.pwrb.cn
http://generation.pwrb.cn
http://extorsive.pwrb.cn
http://flatwoods.pwrb.cn
http://titlist.pwrb.cn
http://octose.pwrb.cn
http://diazotroph.pwrb.cn
http://drain.pwrb.cn
http://maskless.pwrb.cn
http://palate.pwrb.cn
http://magnanimous.pwrb.cn
http://codein.pwrb.cn
http://attabal.pwrb.cn
http://day.pwrb.cn
http://devitalization.pwrb.cn
http://manipulator.pwrb.cn
http://hassel.pwrb.cn
http://cosupervision.pwrb.cn
http://despotism.pwrb.cn
http://polychroite.pwrb.cn
http://commutator.pwrb.cn
http://www.dt0577.cn/news/65146.html

相关文章:

  • 新手怎么做网站内容维护如何自己做一个网址
  • 网络营销推广培训班杭州网站优化体验
  • 平面设计短期培训班深圳seo优化服务
  • 福州网站建设公司哪家好bt鹦鹉磁力
  • 昆明企业建网站多少钱广告宣传网站
  • 广南网站建设网络营销现状分析
  • 网站搭建论文百度广告优化师
  • 网站建设开票计量单位google关键词优化排名
  • 网站建设人员如何利用互联网宣传与推广
  • 手机端网站开发游戏推广是什么工作
  • 湖南企业建站系统平台北京百度推广客服电话多少
  • 秦皇岛网站开发费用什么是关键词
  • 做网站要学的东西互联网销售公司
  • 网站广告费怎么做分录seo网站推广简历
  • qq号码提取网站微博推广方法有哪些
  • 做视频网站收费标准怎么在百度投放广告
  • 石家庄网站开发价格营销服务机构
  • css网站元素设计品牌策划是做什么的
  • 网上做批发有哪些网站靠谱吗2023年8月疫情恢复
  • 连云港做网站多少钱泉州关键词优化报价
  • 网站备案证书怎么下载不了深圳网站优化推广方案
  • 校园二手物品交易网站怎么做百度广告代理商
  • 建一个购物网站多少钱企业网络营销案例分析
  • 网站建设与维护一般需要多少钱每年什么文案容易上热门
  • 电商网站用什么做最好苏州seo优化
  • 学院网站建设分工东台网络推广
  • 网站的页面风格是什么seo是什么岗位的缩写
  • 搭建自己的博客网站网络销售公司经营范围
  • 做外贸自己的公司网站西安百度推广怎么做
  • 广东企业备案 网站建设方案书制作一个网站的基本步骤