|
发表于 2008-4-9 10:33:26
|
显示全部楼层
在7.6中也有GAWizard,,它这个模块需要添加才能使用,正常情况下,不一定能看得见( w- i/ u/ I. w) h. O2 t) V# q' x
在help文件中,有如何添加GAWizard5 h5 ~/ z/ e( a5 t
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:
" H# B; C: Q7 {! ?' T+ P9 K- 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.
|
|