Matlab realizes the calling of a Matlab model as m-file from the simulation system Matlab/Simulink. The COM-interface has been implemented internally. 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 Matlab 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 m-file for Matlab or mdl-file for Simulink. The name and the directory of the file will display in the corresponding windows.
Start-Command
It is the command started only once time at beginning of optimization process
Calculation Mode
Set calculation mode for the Matlab model: Simulation, Set Inputs, Set Inputs and Start, Get Outputs and Wait and Get Outputs. Only input variables of Matlab will be set by the option Set Inputs and only the output variables of Matlab will be read by the option Get Outputs without any model calculation. Input variables will be set by the option Set Inputs and Start and the simulation will be started without waiting to finish simulation. The simulation process will be waited to finish by the option Wait and Get Outputs. After that, the results will be read. The total steps will be done only by the option Simulation.
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 of the experiment can be selected as output links for the model.
Input
After selecting desired input links, the Matlab parameters can be assigned to these input links. First select a input link, then write the name of Matlab variable in window "Matlab-Variable" down. So the both variables will be assigned to eachother. If the input variable (e.g. P1) contains a value list, an additional variable with post-fix "_Array" (e.g. P1_Array) will be created obtaining this value list. Thus, vectors can be transformed to Matlab.
Output
After selecting desired output links, the Matlab output variables can be assigned to these output links. First select a output link on the left, then write the name of Matlab variable in window "Matlab-Variable" down. So the both variables are assigned to eachother. If the Matlab variable is a maxtrix, the column index of the matrix can be set. the values of this matrix column will be read to the assigned output link
Output-Value
After all links are assigned to model parameters and results, the accumulation of result values of model can be edited. That is to arrange how the values of the output links can be calculated from the values list of the simulation results. There are several possibilities as Last Value, Minimal Value, Maximal Value, Mean Value, Sum, Absolute Sum, Bandwidth and Standard Deviation.