・I乜气!l({IJ1J・ (1)初始化种群P,包括交叉规模、交叉概率 P 、突变概率P 以及对任一WIH 和 40。 再使用BP算法训练整个网络。通过这样的训练 之后,系统就能在运行时根据输入的照度、车辆 初始 化。在编码中,采用实数进行编码,初始种群取 等情况,反馈出最优的调光命令。 (2)计算每一个个体评价函数,并将其排 序。可按式(1)概率值选择网络个体: /,v P : /∑ (I) 式中. ——个体i的适配值,可用误差平方和E 来衡量 八 ):1/E( ),E( )=∑∑(Vk一 ) 其中i=1,…,Ⅳ为染色体数;k:1,…,4为输出 层节点数;p:1,…,5为学习样本数;Tk为教师 信号。 (3)以概率P 对个体G 和G…交叉操作产 生新个体G 。和G …,没有进行交叉操作的个体 进行直接复制。 (4)利用概率P 突变产生G 的新个体G 。 (5)将新个体插入到种群P中,并计算新个 体的评价函数。 (6)计算误差平方和,若达到预定值 ,则 转(7),否则转(3),继续进行遗传操作。 (7)以GA遗传出的优化初值作为初始权 值,用BP算法训练网络,直到指定精度 ( BP< GA)。 达到所要求的性能指标后,将最终群体中的 最优个体解码,即可得到优化后的网络连接权系 数。 根据以上算法,使用MATLAB编程。将表2 中的数据分别读入不同的初始文件中,再用GA—BP 算法进行神经网络学习,并将结果权值存入知识 库中,即建立了其中一个神经子网络知识库。 用GA.BP算法训练前面的神经网络,取GA 的初始群体N=40,误差平方和预定值: s。 =5.0。误差平方和曲线、适应度曲线如图5所 示。 仿真结果表明,其遗传算法经过大约100代 的搜索后误差平方和达到了预定值,平均适应度 趋于稳定。算法得到了满意的回想结果,使得照 明系统根据洞外照度的变化而作出相应的调整。 以GA得出的优化初值作为初始权值,然后 ・44・ 图5误差平方和曲线、适应度曲线图 5 结 语 该系统是针对应用工程中存在的问题,进行 理论上的分析和改进,并搭建了试验系统,具有 很强的可行性。将其运用于实际隧道现场中,不 但可以提高交通运输的效率、节约大量的公共电 能的消耗,更能有效地保证行车安全。相信物联 网技术在照明系统中的发展是科技进步的必然。 [t] 宋白桦,李鸿,贺科学.公路隧道照明的研究现 状和发展趋势【J].湖南交通科技,2005,31(1): 96-98. [2] 沈苏彬,范曲立,宗平,等.物联网的体系结构与 相关技术研究[J].南京邮电大学学报:自然科学 版,2009,29(6):1-9. [3] 浦敏,李云飞,王宜怀.基于物联网的无线照明控 制系统[J].照明工程学报,2010,21(2):86—88. [4]李新春,李永喜,范翠艳.基于教学楼节能控制 系统的设计[J].微计算机信息。2010,26(7 ): 135—1 37. [5]LEE J D.Development of ZigBee—based Street Light Control System[C]∥Power Systems Conference and Exposition,2006. (下转第50页) 现代建筑电气 NO.5 Vo1.2(Serial NO I7}2011 ・能源管理・ Design of Intelligent Energy Meter and Its Application in Energy Saving of Buildings WU Dongbo,ZHENG Chuaftgjie .(Dandong Huatong Measuring Instrument Co.,Ltd.,Dandong 1 18009,China) Abstract:Research of intelligent energy meter and application in intelligent building were introduced.The stand— ard of energy saving in pulic building were put forward through analyzing the intelligent energy meter industry.The intel— ligent eneryg meter could meet design requirment of measuring accuracy and products function by using the hardware and software,which is beneficial to the enery saving construction of public building and smart grid.It play a critical role for smart grid construction and energy saving measurement of public buildings. Key words:intelligent power grid;intelligent energy meter;energy saving;monitoring;measurement (上接第44页) [6]Texas Insturments.A True System—on—Chip Solution 流量预测[J].计算机应用,2007,27(7):1770— f0r 2.4-GHz IEEE 802.15.4 and ZigBee Application 1772. [EB/OL].www.ti.con. [11] LIN Z C,CHANG D Y.Cost—tolerance Analysis [7] 冯承金.基于Zigbee和ARM9的智能家居系统的 Model Based on a Neural Networks Method【J].In— 研究与设计[D].武汉:武汉理工大学,2010. ternational Journal of Production Research,2002,40 [8] 肖华.基于ZigBee隧道照明无线控制系统研究和 (6):1429—1452. 设计[D].长沙:湖南大学,2009. [12] 邵克勇,李飞,蒋北艳,等.基于改进遗传算法 [9] 赵亮,雎刚,吕剑虹.一种改进的遗传多目标优 的双向BP神经网络控制[J].化工自动化及仪 化算法及其应用[J].中国电机工程学报,2008, 表,2010,37(10):18—21. 28(2):96—101. 收稿¨蚓:2011—03—28 [10] 刘杰,黄亚楼.基于BP神经网络的非线性网络 Genetic Algorithm-neural Networks Tunnel Illumination Control System Based on the Internet of Thing DING Zhengyang,MA Xiaojun,ZHANG Yiyang,ZHANG Jian (College of Automation&Electircal Engineering,Nanjing University of Technology, Nanjing 210009,China) Abstract:Aiming at some problems existing in highway tunnel illumination control system and the phenomenon of energy—wasting,a wireless control network was built to realize the real—time tunnel illumination control and remote moni— toring based Off the Internet of thing.By analyzing the system structure and control process,the genetic algorithm—neural network was optimized,and finally lighting efifciency and energy consumption were improved as wel1. Key words:tunnel illumination;ZigBee technology;the internet of thing:genetic algorithm.neural net. works ・50.