Output-File is used to transfer data from the external simulation system to the out put variables of the experiment. They are ASCII-text-files which are created by the simulation systems after finished processing. Output-File is normally used with extern script. 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 ASCII-file 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
Select the field and press the button on the right side to open an existing ASCII-file. The name and the directory of the file will display in the corresponding windows.
Coding
There are two basic text coding algorithms: ANSI and Unicode. ANSI code cannot support all languages of the world. Therefore, Unicode is introduced and can codes all languages as Chinese, Japanese etc. The Coding has to be chosen before loading the text file for interpreting the file content correctly.
Delete Output File
When the option is set to True, the output file will be deleted automatically after reading the results. It is very useful, if the model calculation takes less than a minute. The status of the model calculation depends, when the output file will be generated after calculation. If it is set to False, the status of the model calculation depends on the changing of the time stamp (in every minute) or content of the created output file after simulation.
Show Failure
When the option is set to True, the output file will show the failed status of simultion
Input
The extern script inserted in the workflow editor can be selected as input links for the output file.
Output
The output variables inserted in the workflow editor can be selected as output links for the output file.
Output File
After selecting input and output links, the data of the output file can be assigned to the output links.
The total content of the loaded output file is shown in the window "ASCII-File" and the selected output links on the window "Output-Variables".
Assign the output variable to a number
First select a output variable on the right window
Then select a string of the output file on the left window.
Press the right mouse button to activate the context-menu "Define Key-String"
Press the left mouse button on the menu to define the selected string as key-string for the selected output variable.
Then select a number of the output file, which should be assigned to the value of the selected input variable
Press the right mouse button to activate the menu "Insert Relative Variable"
Press the left mouse button on the menu to replace the selected number by the selected output variable.
The number and the string are displayed in red with its data in the according windows
If reassigning process is done, the old number and the string will be replaced by a new number and string
After all output variables have been assigned to the Output File, select a output variable to display all assigned numbers and strings in blue and the number of the selected output variable in red.
If there is no any string in the output file and the file structure will not be changed after simulation, the menu "Insert Absolute Variable" can be used to assign the selected number to the selected output variable without defining a key-string.
Hint: Key-Strings may not be changed by simulation system during optimization process. Key-Strings must be constant and it is a reference to find its number being changed always.
Assign the output variable to a number row or column
The procedure for Key-String can be done analog above.
select the first number of a number row or column in the output file, then press the right mouse button to activate the context-menu.
Use "Insert Relative Row" or "Insert Absolute Row" for a number row and "Insert Relative Column" or "Insert Relative Column" for a number column to assign the selected output variable to the selected number array.
All assigned number will be highlighted.
Value-Accumulation
The accumulation of the value for the output variable from a number array can be set after the assignment. That is to arrange how the value of a output link can be calculated from the values list of the Simulation result. There are several types as Last Value, Minimal Value, Maximal Value, Mean Value, Sum, Absolute Sum, Bandwidth and Standard Deviation.