Adding Experimenter and OptQuest by executing a Script

Adding Experimenter and OptQuest by executing a Script

sebastian_lang
Not applicable
14 Views
2 Replies
Message 1 of 3

Adding Experimenter and OptQuest by executing a Script

sebastian_lang
Not applicable

[ FlexSim 17.0.2 ]

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

Accepted solutions (1)
15 Views
2 Replies
Replies (2)
Message 2 of 3

JordanLJohnson
Autodesk
Autodesk
Accepted solution

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.

.


Jordan Johnson
Principal Software Engineer
>

Message 3 of 3

sebastian_lang
Not applicable

Works pretty well. Thanks!

0 Likes