question

jiang J avatar image
0 Likes"
jiang J asked Jeanette F commented

how flexsim calls external C++programs directly

how flexsim calls external C++programs directly,can you give a simple example ,thank you

FlexSim 18.2.3
external optimizerc++ programexample
· 4
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

@jiang J, you want to optimize parameters by an external program. This means the external program lets run a model and varies parameters. Or do you want to let run a model in FlexSim and call an external program that evaluates results and returns updated parameters in your model?

0 Likes 0 ·
jiang J avatar image jiang J commented ·

I want to run a model in the FlexSim and call an external program, which is usually an optimization algorithm that can predict the future in real time and give the next best decision

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel jiang J commented ·

@jiang J, this means, you stop all objects in a model. Then you call a program, that returns values in a file, you read the file data from FlexSim, you update parameters in FlexSim and resume all objects again. Is this right, or is there a different behavior?

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @jiang J, was one of Steven Hamoen's or Joerg Vogel's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Steven Hamoen avatar image
1 Like"
Steven Hamoen answered

@jiang J Please search for either DLL maker of Module SDK to know exactly how to build a C++ program/DLL that can be linked to FlexSim

5 |100000

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