1.7 The on-line wizard
After all the necessary on-line OCC parameters the user can invoke the On-line Wizard by clicking “Run” on the on-line menu. This wizard is designed to take the user step-by-step through specifying the run-time options.
1. Specify whether ID is to be carried out.
Fig. 1.7: Dialog box for selecting ID
If “Yes”, go to step 2.
If “No”, make sure <initials_opt1.dat> and <svalues_opt1.dat> are present in model root directory. Go to step 3.
2. Specify whether the ID during the first cycle is to be carried out using <steady_state.mat>.
Fig. 1.8: Dialog box for selecting steady state data
If “Yes”, make sure <steady_state.mat> is present in model root directory.
If “No”, make sure <initials_opt1.dat> and <svalues_opt1.dat> are present in model root directory.
3. Specify whether various different OPT .EXE files are to be executed sequentially.
Fig. 1.9: Dialog box for selecting sequential execution of .EXE files
If “No”, go to step 4-1.
If “Yes”, go to step 4-2.
4-1. Specify one OPT .EXE file.
Fig. 1.10: Open file dialog for selecting a single OPT .EXE file
4-2. Specify up to five .EXE files to be carried out sequentially. The user is also required to define the switch-criteria. These criteria must be in MATLAB format, e.g. “time_sim>=1000” or “P_tot_sim>150”, and will be checked at the end of each on-line cycle. Fulfillment of the first criterion causes OCC to switch to the second objective, and so on.
Fig. 1.11: Menu for selecting more than one OPT .EXE files
6. In the case that ID is to be carried out, the user has to select the .EXE files to be used. This is done using the ID selection menu shown in Fig.1.1. This procedure is repeated for every OPT .EXE file selected. OCC reads the structure file of the OPT .EXE file, which was selected in step four. All the variables present in the optimization problem will be shown on the menu, with differential variables being listed first in bold font.
Fig. 1.12: Menu for selecting ID .EXE file(s) and options for starting guesses
Select the ID .EXE files by checking the checkbox next to the file name. Click “Apply” to update the pop-up list beside each variable. Each variable is checked against the variable lists found in the structure files of the selected ID .EXE files.
Using the pop-up lists, the user is able to select the source of information for generating the starting guesses used for the subsequent OPT step. The selection for algebraic variables is only taken into account for the first cycle.
Besides the variables already used as measurements in the ID .EXE files, the user can specify simulation data to be used as data source by checking the checkboxes next to the variable name and selecting “Use measured data” in the adjacent pop-up list.
Click “Save” after data sources for all variables have been selected.
7. Lastly, the user is required to specify the Simulink model to be used.
Fig. 1.13: Open file dialog for selecting Simulink model
The information gathered by the On-line Wizard is stored in the initialization files <on-line_initialise_opt.m> and <on-line_initialise_id*.m>, where * represents the optimization phase(s). These files are saved in the case directory. OCC checks for these files every time before the On-line Wizard is invoked. If they are found, OCC asks the user whether the saved options are to be reused.
|