I need to put GA into my model,but I don't know how to put in
I need to put GA into my model,but I don't know how to put in
It looks like you are trying to put python code directly in the FlexScript window. This is not possible. You should write a .py file, not in the model, and then only reference a file name and function name in FlexSim. You also need to toggle the node as "external" not as FlexScript.
If you want to optimize your model, you should consider an optimizer license. The optimizer that comes with FlexSim uses many evolutionary algorithms, including GA, to optimize the model.
If you really want to write your own optimization algorithm, I'd recommend you use FlexSimPy and treat the model as a black box, rather than trying to optimize within FlexSim. Create a model that is governed by model parameters. Then use FlexSimPy to launch the model, set the parameters, and obtain performance measures. You can do this in a loop.
14 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved