* Once the definition of your HDMR model is complete, click the '''OK''' button on the dialog to close it and return to the HDMR Settings dialog.
You will see your new HDMR added to the HDMR Model List table. You can modify a model definition using the {{key|Edit}} button of this dialog. You can also define more than one HDMR model at a time. Such models will be generated using the same simulation runs. However, it is recommended not to generate unrelated models together. In the example below, we have defined an HDMR model called "Resistance" for the real part of the Z11 [[parameters]] of a dipole antenna as a function of its length defined by an independent variable "L".
<table>
</table>
[[Image:Variable34.png|thumb|550px|Defining an objective involving antenna directivityEM.Cube's Model dialog showing a the HDMR model "Resistance.HDM" generated by EM.Tempos' FDTD simulation engine.]]
== Running an HDMR Sweep ==
After you define all of your HDMR [[variables]] and model(s), close the HDMR Settings dialog to return to the simulation Run dialog. When you click the {{key|Run}} button of the Simulation Run dialog to start the HDMR sweep process, an Output Window pops up that reports the various stages of the sweep loop and displays the progress or percentage of completion. After the sweep process is finished, an HDMR file with a '''.HDM''' file extension is added to your project's folder, which contains all the monomial coefficients of your HDMR model. You can see your new HDMR model [[EM.Cube]]'s Models Dialog, which you can open by clicking the '''Models''' button [[File:Models_icon.png]] of the Simulate Toolbar or selecting '''Menu > Simulate > Models...''' or using the keyboard shortcut {{key|Ctrl+L}}.