设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5607|回复: 8

[求助] 在emplant如何使用遗传算法?

[复制链接]
发表于 2008-4-1 13:16:03 | 显示全部楼层 |阅读模式
5仿真币
在emplant如何使用遗传算法?
9 W$ Y% Q$ ?+ U5 n& |# G) m我想知道在emplant7.6中如何导入遗传算法?是不是在emplant7.6中就有呀?
8 h3 E2 F8 d1 o7 a' {谢谢

最佳答案

查看完整内容

里面有个GA模块,,
发表于 2008-4-1 13:16:04 | 显示全部楼层
里面有个GA模块,,
发表于 2008-4-1 13:16:04 | 显示全部楼层
在file-add objects-GA  h% b, K. W! [3 q% L' ?
就可以使用了
 楼主| 发表于 2008-4-2 20:06:20 | 显示全部楼层
GA模块,又如何加载呢?
6 D$ |3 |, y" _8 _4 W不好意思,我是新手,麻烦您说的详细点好吗?9 P& f! C8 `* h$ X* N/ R
谢谢!!
发表于 2008-4-5 13:01:45 | 显示全部楼层
当然,我这是8.1的,如果是低版本的,有没这版块,我不清楚
 楼主| 发表于 2008-4-8 10:53:32 | 显示全部楼层
我还想问一下,在7.5中有GAWizard,为什么在7.6中就没有呢?
发表于 2008-4-9 10:33:26 | 显示全部楼层
在7.6中也有GAWizard,,它这个模块需要添加才能使用,正常情况下,不一定能看得见
( s% \1 a/ P6 g/ q9 `8 P; Y在help文件中,有如何添加GAWizard5 f' O  T9 X  x4 w" l- }% O
To add the GAWizard [img]mkMSITStore:C:\Program%20Files\Tecnomatix\Plant%20Simulation%208.1\Help\eM-PlantENU.chm::/images/GAWizardicon.gif[/img] to your simulation model: ( `; m7 C* T' v% u* n7 Z$ s: e
    • Click any folder on the tab Class Library in the Explorer with the right mouse button and select the command [url=mkMSITStore:C:\Program%20Files\Tecnomatix\Plant%20Simulation%208.1\Help\eM-PlantENU.chm::/Ch02UserInterface113.html#901442]Add Objects[/url]. Select Genetic Algorithms to add the objects to the Class Library. Then, load the object GAWizard: Click Info Pages in the Explorer. Click Tools and select GAWizard. This adds the folder GAWizard to the Tools folder. Insert the object GAWizard and all objects required to run the optimization into the root frame of the simulation model. Open the object GAWizard by double-clicking it.
You can define the optimization problem with the GAWizard by using:
    • Drag-and-Drop: Drag the tables, the sequence of which you would like to optimize onto the GAWizard and drop it there. When you would like to optimize an attribute of an object, drag this object onto the GAWizard, drop it and select the attribute. Then, you can change the value range of the parameters to be optimized into the table ProblemDefinition. To open this table, click the button Open next to Definition of the optimization parameter on the tab Define.
    • GA-tables, which you insert into the root frame of your simulation model. Click Reset on the tab Run. This will register all GA-tables you inserted with the GAWizard. Then configure all GA-tables on the tab Define. Select the check box Parameterizing the model with GA-tables, then click the button Edit and program the method setParameter. The global variable individual is a table of the individual to be evaluated, which the genetic algorithm created. The first line of code demonstrates how to access the chromosomes of the individual. Set a breakpoint in the method and click the buttons Reset and Start on the tab Run of the object GAWizard to detect the order of the chromosomes the object used. With the method setParameter you can transfer all properties of the chromosomes into your simulation model. The result of the method setParameter is true, when the values of the individual allow to parameterize the simulation model. When the parameterization fails, the respective individual will be assigned a bad fitness value, a so-called penalty value. Enter the penalty value into the text box Fitness non-realizable individuals on the tab Define. Take special care of the paths to the objects for which you define arguments, as the method setParameter is located in the Frame in which the object GAWizard is located.
发表于 2008-4-9 10:35:07 | 显示全部楼层
我这有个GAWizard 的模型,,需要的可以下载

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2008-7-3 09:54:22 | 显示全部楼层
tg 你的模型是7.6版本的 友7.5版本的嗎?! _9 f5 c! ^) }1 R3 V8 F
我怎樣試都怪怪的~
1 b0 Z$ p/ m- Q1 }9 w還有哪位大大有7.5版本的ga模型
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2024-11-24 04:47 , Processed in 0.016514 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表