UserEx element is builded by an extern scripting engine of the extern simulation program. It comunicates with OptiY via its COM-interface. It is the graphical interface for the UserEx Template created by user. Double-click on its symbol in the workflow editor to open the property window:
General
Name
It is the name of the node. This name may be defined basically once time for the entire experiment.
Comment
The comment for the node.
Working Directory
It is the working directory for the model be opened. If the directory starts with the sign "\", it will be the relative path located on the directory of its OptiY-File (*.opy).
File
Press the button to select and load an existing user model. The name and the working directory of the model will be displayed in the corresponding windows. The script "OpenFile" of the UserEx template will be performed.
Script Engine
An open-file-dialog appears to choose an extern script engine. The full file name of the script engine will be displayed.
User Option
The script "SetOptions" of the UserEx template will be performed to set other user options.
Max. Process-Time [s]
This is the max time for execution of the process in seconds. If the execution of the process is longer than the given time, the process will be killed and the next step of optimization or design of experiment can follow. Thus, user can limited the execution time of external simulation process. If "Max Process-Time" = 0, the execution time is infinite. That means, the process will be executed naturally as long as it needed. There is no time limitation for the external process and OptiY will wait until the process finish to start the next step.
Input
The elements as nominal and stochastic parameters, transfer and output variables of the experiment can be selected as input links for the model.
Output
The output variables inserted in the workflow editor can be selected as output links for the user model.
Input
After selecting all input links, the parameters of the user model can be assigned to these input links. All available model parameters will be transferred from extern program into OptiY via the script "OpenFile". They are shown in the left window and all selected input links in the right window. First click a model parameter and a input link. Than, click the [>>]-button to assign the selected link to the selected model parameter. The model assignment will be displayed on the bottom window.
Hint: If a link is assigned to a new model parameter, the old model parameter will be deleted.
Output
After selecting all output links, the results of the user model can be assigned to these output links. All available model results will be transferred from extern program into OptiY via the script "OpenFile". They are shown in the left window and all selected output links in the right window. First click a model result and an output link. Than click the [>>]-button to assign the selected model result to the selected output link. The model assignment will be displayed on the bottom window.
Value Accumulation for the Result
After the links are assigned to model parameters and results, the accumulation of result values of user model can be edited. That is to arrange how the value of a output link can be calculated from the value list of the simulation model result. There are several types as Last Value, Minimal Value, Maximal Value, Mean Value, Sum, Absolute Sum, Bandwidth and Standard Deviation.
Optimization Process
During optimization or design of experiment, the script "StartSim" will be performed for each model calculation step.