question

Ashley C avatar image
0 Likes"
Ashley C asked Ashley C commented

How to build a basic genetic algorithm in FlexSim?

Hello FlexSim Community!


Can someone show me a basic genetic algorithm in Flexsim? I just got the license through my university, and hope to use it to build a complex machine scheduling model. However, I don't even know where to start. If you have any advice or can point me in the right direction, it'll be greatly appreciated.


Thank and have a wonderful day!

FlexSim 21.1.0
flexsim 21.1.0algorithmgenetic algorithm
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Ashley C, was the answer information helpful in getting you started? If so, please click the red "Accept" button at the bottom of my answer. Or if you still have related general questions, add a comment and we'll continue the conversation. (For specific questions, start a brand new question - helps us keep topics and info organized for better search).

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Ben Wilson avatar image
1 Like"
Ben Wilson answered Ashley C commented

Hi @Ashley C,

This is a complex issue. You'll want to make sure you have a solid foundation in FlexSim. Sorry I'm not aware of your background in this, but if you are not yet very comfortable with FlexSim, the user manual tutorials, the YouTube Core Training course, and the student primer are all great self-learning resources. Be aware that in 2021 some aspects of our user interface were updated, so even though the YouTube course and primer are both quite new, the interfaces you see in FlexSim 2021 will be somewhat different.

Once you've got a good handle on FlexSim itself you should also read up on FlexSim's OptQuest integration (overview, key concepts, tutorial). There is a chance that OptQuest will already handle the bulk of what you want to accomplish. Since it is already built in to FlexSim, this would be quite a bit easier than integrating an external optimization engine.

If OptQuest doesn't suit your needs, our Brazilian partner has put together a kit of sample material demonstrating integration of an external optimization solution with SciLab. If you're not using SciLab, many of the concepts will still apply. You can check out the pertinent Q&A here: How to recursively call the simulation for optimization. - FlexSim Community

Their documentation is in Portuguese, but I've thrown some chunks into translate.google.com and they seem to translate well enough that you should be able to follow along.

Hopefully that is enough to get your started. As you get into it and start having specific questions, start a brand new question here on the community to address each issue you run into.

Good luck!

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ashley C avatar image Ashley C commented ·

Hi Ben,

Thanks so much for all of your helpful advice and pointers!!

0 Likes 0 ·