版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、1,第5讲 用AnyLogic进行MAS仿真,5.1 先看一个例子 5.2 对此例子进行概览 5.3 具体的学习 5.4 主要的state chart components 5.5 动画的表示,2,之前的之前要看的视频,观看视频:航天神五、神六发射时,飞行控制室实况录相。 注意,哪些地方应用了仿真技术 为什么要用?不用行不行,3,5.1 例子:熟读唐诗三百首,不会作诗也会呤,销售渠道的模拟: 背景:This is an Agent Based model of a sales process in a business where clients are to be reviewed by t
2、he company: e.g. this could be insurance, banking,leasing, etc. The process has several stages that are modeled by different states in the statechart of a Customer object: initial contact, quote, credit review. The customer may leave on each stage, and the company, in turn, may reject the customer.
3、The model helps you to examine how the skill level and size of the sales force and the credit review team affect the efficiency of the whole process,4,5.2 Agent的形成,A初始状态和属性 Prospect的最初位置: Getx和getY,5,状态图,State chart: Agent的各种状态在这里用图形方式表达, 状态图中,将各种状态变化时的行为或者属性更改在此处写出,这里(可能需要用到各种Anylogic里的编程对象) 例如:潜在客
4、户prospect 的变化状态,6,在mainmodel中进行调用,用get返回对模型中各种对象的引用 在不同的状态图中对这些对象进行编程和调用,7,各种变量和参数(二者有何区别,Main model中的参数与变量 各个不同的状态图中的参变量 统计状态与表示 思考:哪些变量要放在state chart中哪些要放在Main model中,8,集成运行,展示:sales funnel,9,5.3具体的学习,State chart Entry Point、Final state Statechart entry point is used to indicate the initial state
5、of the statechart.There should be exactly one statechart entry point defined for each statechart. You may define several independent statecharts for the same active object, each one describing some particular process. In this case AnyLogic will distinguish how manydistinct statecharts there are by a
6、nalyzing the number of statechart entry points,10,General properties of statechart entry point,Name The name of the statechart entry point.The name is used to identifyand access the entry point from code. Show name If selected, thename of the statechart entry point is displayed on a presentation dia
7、gram. Ignore If selected, thestatechart entry point is excluded from the model. Public Defines, whether thestatechart entry point is visible on a presentation diagram of the owner of this active object class.Since statechart elements cannot appear on owner class presentation, this checkbox is always
8、 deselected and disabled. Showat runtime If selected, thestatechart entry point is visible on a presentation at runtime. Action Sequence of Java statements executed when thestatechart entry point forwards the control to an initial state,11,state,State represents a location of control with a particul
9、ar set of reactions to conditions and/or events. A state can be either simple or, if it contains other states, composite. Control always resides in one of simple states, but the current set of reactions is a union of those of the current simple state and of all composite states containing it i.e., a
10、 transition exiting any of these states may be taken,12,Transition,denotes a switch from one state to another. A transition indicates that if the specified trigger event occurs and the specified guard condition is true, the statechart switches from one state to another and performs the specified act
11、ion. When this occurs, the transition is taken,13,转移发生时,执行的事件选择,A transition may freely cross simple state and composite state borders. If the source of a transition lies either on or inside a state, and the destination of that transition lies outside of the state, then that state is considered exit
12、ed by the transition. If such a transition is taken, the exit action of the exited state is executed. If the source of a transition lies outside a state, and the destination of that transition lies either on or inside the state, then that state is considered entered by the transition. If such a tran
13、sition is taken, the entry action of the entered state is executed. In case a part of a transition lies inside a state, but both source and destination are outside the state, this state is considered neither entered nor exited,14,分支选择:branch,represents a transition branching and/or connection point. Using branches , can create a transition that has more than one destination state, as well as several transitions that merge together to perform a common action. When control passes a branch,
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 浙江省2026年中考考前对标适应性考试三模数学试题附答案
- 2026年服务机器人项目投资回报周期与成本效益测算模型
- 2025年前台服务沟通考核卷
- 病区护理团队协作机制
- 2026年政府和社会资本合作新机制规范实施与使用者付费项目设计指南
- 2026年智慧鸡舍用工减少七成产蛋率提升六个点
- 2026年设计创意产业AI PC实时渲染AIGC内容生成工作流
- 2026年智能评估技术AI房价预测在反向抵押养老保险定价中应用
- 电信行业用户数据安全保障方案
- 防高坠安全专项施工方案(钢结构)
- 工商管理专业 酒店业人力资源流动管理分析
- 船舶机舱监控系统教学课件
- 外国文学史(下)-马工程
- 住院医师大课-糖尿病病人的麻醉-罗贞
- GB/T 42061-2022医疗器械质量管理体系用于法规的要求
- 丁往道英语写作手册课件
- 创新型城市建设的工作思路课件
- EHS有感领导(培训)
- 化工过程数值模拟及Aspen-Plus软件应用
- 苏教版一年级科学下册全册教案(常用)
- 2008年全国中学生生物竞赛(试卷及答案解析)
评论
0/150
提交评论