question

Rania A avatar image
0 Likes"
Rania A asked Rania A commented

Connect C# algorithm results and flexsim

Hello everyone,

My situation is kinda complicated, I have an ACO algorithm written in c# that first constructs a solution : task sequence and for each task source and destination positions. What I want is to send this results to my flexsim model, for flexsim to execute that task sequence and return the travelling time .

The problem is that I cannot find a suitable way to connect them.
As I read the API can only be used with python or c or c++
Another way is to do it manually, meaning save each solution to a file then open flexsim input , get another file and again input it on my algorithm to continue with pheromone updates etc. But we have up to 800 solutions, so this one will take forever,

From experience is there any sufficient way to do this connection? that will also save us time ?

Thank you in advance

FlexSim 20.0.10
connectionsalgorithmc#simulation optimization
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Rania A, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

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

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Rania A commented

Have you considered using a database for data exchange and sockets for database trigger events? Phil suggests the latter here.

· 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.

Rania A avatar image Rania A commented ·
Thank you for the answer. I ended up using batch files to send flexscript to flexsim , and run my model
0 Likes 0 ·