question

Sebastian Lang avatar image
1 Like"
Sebastian Lang asked Sebastian Lang commented

Adding Experimenter and OptQuest by executing a Script

Hi again,

I wrote a script, which defines for an optimization problem the complete enumeration in the experimenter and also the corresponiding mathematical model in OptQuest.

At the moment, it is nescessary to click on the experimenter and to click also on the OptQuest tab to install the corresponding folders with all the subnodes in the model tree. Only then the script can be activated and will do its job.

Now I am wondering, if there is any command to install a "nacked" experimenter and Optquest instance in the model tree?

(I guess applicationcommand() could be again the solution, but I have no clue, which parameters I have to give to the function)

I am also interessted, if it is possible to save several instances of the experimenter and of OptQuest somewhere in the model tree and to change between those (also by running a script).

Nice regards!

Sebastian

FlexSim 17.0.2
experimenteroptquestscripting
5 |100000

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

1 Answer

Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Sebastian Lang commented

If you look in the attributes of the node VIEW:/standardviews/statistics/Experimenter, you will find two attributes: exptemplate, and optquesttemplate. All the view does (as you will find in the OnPreOpen code), is copy these templates into the tools folder with better names. I think you should be able to do exactly the same thing. I will say that this feels like the kind of thing that might break in a future release, but for now it should work great. Certainly it won't change on the 17.0 version of the software.

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

Sebastian Lang avatar image Sebastian Lang commented ·

Works pretty well. Thanks!

0 Likes 0 ·