User element is builded by the intern scripting engine (Visual Basic or C#) based on .NET framework technology inside of OptiY. It calls a model from a self integrated simulation system via its COM-interface. It is the graphical interface for the User 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 3 sub-procedures as "UserOpenFile", "UserListParameters" and "UserListResults" will be performed.
User Option
The sub-procedure "UserSetOptions" will be performed to set other user options.
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 sub-procedure "UserListParameters". 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 sub-procedure "UserListResults". 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
In the initialization of the optimization process, the sub-procedure "UserOpenFile" will be carried out once time to start the program and to open the user model. During optimization, the 3 sub-procedures "UserSetParameters", "UserStartSimulation" and "UserReadResults" will be performed after each others for each optimization step.