⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simulator.tex

📁 由matlab开发的hybrid系统的描述语言
💻 TEX
字号:
\chapter{Simulator}\label{simulator_c} Given an initial state and a sequence of inputs,the \MLD{} system determines the behavior of the hybrid system. Inthis scenario, solving the \MLD{} system to get the output and thenext state is overkill. AD and DA items can be evaluated directlyusing a \matlab{} `if then else' construct. The problem with thisapproach is the execution order: In the \hysdel{} source the orderof the statements does not matter. Neither does it whentranslating into a \MLD{} system. But when these statements aredirectly evaluated, it is important that all auxiliary variableson the right hand side are known when computing the left handvariable value. Thus, we need an order in which the statements areto be evaluated. \method{Symbol\_table}{find\_computable\_order}finds such an order.\method{Symbol\_table}{find\_computable\_order} sets the \code{computable\_order} attribute of \cppclass{Symbol}.Variables with \code{computable\_order} zero are not computable (e.g. because they are not defined). Variableswith \code{computable\_order} one depend on no other variable and can be computed immediately. Variables with\code{computable\_order} two can be computed as soon as all variables with computable order one are computed. Atranslation into a \matlab{} simulator is only possible if all variables are computable.\method{Symbol\_table}{find\_computable\_order} does not distinguish between state or output variables andauxiliary variables. The simulator on the other hand has to; if an auxiliary variable depends on a state variable,it depends on the previous state and can be computed before updating the state. Thus, the simulator first computesthe auxiliary variables in the order given by \code{computable\_order} and then computes all state and outputvariables.In every step the simulator checks that all constraints from the must section are fulfilled and that no bound (forAD and DA items) is exceeded.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -