用AnyLogic进行多智能体仿真_第1页
用AnyLogic进行多智能体仿真_第2页
用AnyLogic进行多智能体仿真_第3页
用AnyLogic进行多智能体仿真_第4页
用AnyLogic进行多智能体仿真_第5页
已阅读5页,还剩10页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

第5讲用AnyLogic进行MAS仿真,5.1先看一个例子5.2对此例子进行概览5.3具体的学习5.4主要的statechartcomponents5.5动画的表示,之前的之前要看的视频,观看视频:航天神五、神六发射时,飞行控制室实况录相。注意,哪些地方应用了仿真技术为什么要用?不用行不行?,5.1例子:熟读唐诗三百首,不会作诗也会呤,销售渠道的模拟:背景:ThisisanAgentBasedmodelofasalesprocessinabusinesswhereclientsaretobereviewedbythecompany:e.g.thiscouldbeinsurance,banking,leasing,etc.TheprocesshasseveralstagesthataremodeledbydifferentstatesinthestatechartofaCustomerobject:initialcontact,quote,creditreview.Thecustomermayleaveoneachstage,andthecompany,inturn,mayrejectthecustomer.Themodelhelpsyoutoexaminehowtheskilllevelandsizeofthesalesforceandthecreditreviewteamaffecttheefficiencyofthewholeprocess.,5.2Agent的形成,A初始状态和属性Prospect的最初位置:Getx和getY,状态图,Statechart:Agent的各种状态在这里用图形方式表达,状态图中,将各种状态变化时的行为或者属性更改在此处写出,这里(可能需要用到各种Anylogic里的编程对象)例如:潜在客户prospect的变化状态。,在mainmodel中进行调用,用get返回对模型中各种对象的引用在不同的状态图中对这些对象进行编程和调用,各种变量和参数(二者有何区别?),Mainmodel中的参数与变量各个不同的状态图中的参变量统计状态与表示思考:哪些变量要放在statechart中哪些要放在Mainmodel中?,集成运行,展示:salesfunnel,5.3具体的学习,StatechartEntryPoint、FinalstateStatechartentrypointisusedtoindicatetheinitialstateofthestatechart.Thereshouldbeexactlyonestatechartentrypointdefinedforeachstatechart.Youmaydefineseveralindependentstatechartsforthesameactiveobject,eachonedescribingsomeparticularprocess.InthiscaseAnyLogicwilldistinguishhowmanydistinctstatechartstherearebyanalyzingthenumberofstatechartentrypoints.,Generalpropertiesofstatechartentrypoint,NameThenameofthestatechartentrypoint.Thenameisusedtoidentifyandaccesstheentrypointfromcode.ShownameIfselected,thenameofthestatechartentrypointisdisplayedonapresentationdiagram.IgnoreIfselected,thestatechartentrypointisexcludedfromthemodel.PublicDefines,whetherthestatechartentrypointisvisibleonapresentationdiagramoftheownerofthisactiveobjectclass.Sincestatechartelementscannotappearonownerclasspresentation,thischeckboxisalwaysdeselectedanddisabled.ShowatruntimeIfselected,thestatechartentrypointisvisibleonapresentationatruntime.ActionSequenceofJavastatementsexecutedwhenthestatechartentrypointforwardsthecontroltoaninitialstate.,state,Staterepresentsalocationofcontrolwithaparticularsetofreactionstoconditionsand/orevents.Astatecanbeeithersimpleor,ifitcontainsotherstates,composite.Controlalwaysresidesinoneofsimplestates,butthecurrentsetofreactionsisaunionofthoseofthecurrentsimplestateandofallcompositestatescontainingiti.e.,atransitionexitinganyofthesestatesmaybetaken.,Transition,denotesaswitchfromonestatetoanother.Atransitionindicatesthatifthespecifiedtriggereventoccursandthespecifiedguardconditionistrue,thestatechartswitchesfromonestatetoanotherandperformsthespecifiedaction.Whenthisoccurs,thetransitionistaken.,转移发生时,执行的事件选择,Atransitionmayfreelycrosssimplestateandcompositestateborders.Ifthesourceofatransitionlieseitheronorinsideastate,andthedestinationofthattransitionliesoutsideofthestate,thenthatstateisconsideredexitedbythetransition.Ifsuchatransitionistaken,theexitactionoftheexitedstateisexecuted.Ifthesourceofatransitionliesoutsideastate,andthedestinationofthattransitionlieseitheronorinsidethestate,thenthatstateisconsideredenteredbythetransition.Ifsuchatransitionistaken,theentryactionoftheenteredstateisexecuted.Incaseapartofatransitionliesinsideastate,butbothsourceanddestinationareoutsidethestate,thisstateisconsideredneitherenterednorexited,分支选择:branch,representsatransitionbranchingand/orconnectionpoint.Usingbranches,cancreateatransitionthathasmorethanonedestinationstate,aswellasseveraltransitionsthatmergetogethertoperformacommonaction.Whencontrolpassesabranch,

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论