SimplifyModel - Maple Help

BlockImporter

 SimplifyModel
 simplify the equations of a BlockImporter system record

 Calling Sequence SimplifyModel( sys, opts )

Parameters

 sys - record; system data opts - (optional) equation(s) of the form option = value; specify options for the SimplifyModel command

Options

 • inplace = truefalse
 If true, the simplified equations replace the original equations in sys. If false, a new record is created and the original record is not modified. The default is false.
 • method = default or tryhard
 Selects the method used to simplify the equations. The default is default.

Description

 • The SimplifyModel command simplifies the equations of a BlockImporter data structure.
 • The sys parameter is a record of the data structure, which is defined in BlockImporter[datastructure].

Examples

 > $\mathrm{with}\left(\mathrm{BlockImporter}\right):$

Create an example of an imported data structure.

 > $\mathrm{sys}≔\mathrm{BlockImporter}:-\mathrm{Example}\left(\right)$
 ${\mathrm{sys}}{≔}{\mathrm{record}}{}\left({\mathrm{equations}}{,}{\mathrm{initialeqs}}{,}{\mathrm{inputvars}}{,}{\mathrm{notes}}{,}{\mathrm{outputvars}}{,}{\mathrm{parameters}}{,}{\mathrm{procs}}{,}{\mathrm{sourceeqs}}{,}{\mathrm{statevars}}\right)$ (1)
 > $\mathrm{PrintSummary}\left(\mathrm{sys}\right)$
 Equations [24]:
 State Variables [3]:
 Initial Equations [3]:
 Source Equations [2]:
 Input Variables [2]:
 Output Variables [1]:
 Parameters [2]:
 $\left[{{u}}_{{10}{,}{1}{,}{1}}{=}{{y}}_{{2}{,}{1}{,}{1}}{,}{{u}}_{{2}{,}{2}{,}{1}}{=}{{y}}_{{3}{,}{1}{,}{1}}{,}{{u}}_{{2}{,}{1}{,}{1}}{=}{{y}}_{{4}{,}{1}{,}{1}}{,}{{u}}_{{8}{,}{1}{,}{1}}{=}{{y}}_{{6}{,}{1}{,}{1}}{,}{{u}}_{{9}{,}{1}{,}{1}}{=}{{y}}_{{7}{,}{1}{,}{1}}{,}{{u}}_{{4}{,}{1}{,}{1}}{=}{{y}}_{{8}{,}{1}{,}{1}}{,}{{u}}_{{3}{,}{1}{,}{1}}{=}{{y}}_{{8}{,}{1}{,}{1}}{,}{{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{}{{x}}_{{11}{,}{1}}{+}{{u}}_{{11}{,}{1}{,}{1}}{,}{{y}}_{{11}{,}{1}{,}{1}}{=}{{x}}_{{11}{,}{1}}\right]$
 $\left[{{x}}_{{4}{,}{1}}{,}{{x}}_{{10}{,}{1}}{,}{{x}}_{{11}{,}{1}}\right]$
 $\left[{{x}}_{{4}{,}{1}}{}\left({0}\right){=}{0}{,}{{x}}_{{10}{,}{1}}{}\left({0}\right){=}{0}{,}{{x}}_{{11}{,}{1}}{}\left({0}\right){=}{0}\right]$
 $\left[{{\mathrm{Source}}}_{{\mathrm{Step}}{,}{6}{,}{1}}{=}\left\{\begin{array}{cc}{0}& {t}{<}{1}\\ {1}& {\mathrm{otherwise}}\end{array}\right\{,}{{\mathrm{Source}}}_{{\mathrm{Step}}{,}{7}{,}{1}}{=}\left\{\begin{array}{cc}{0}& {t}{<}{4}\\ {0.1}& {\mathrm{otherwise}}\end{array}\right\\right]$
 $\left[{{\mathrm{Source}}}_{{\mathrm{Step}}{,}{6}{,}{1}}{,}{{\mathrm{Source}}}_{{\mathrm{Step}}{,}{7}{,}{1}}\right]$
 $\left[{{\mathrm{Sink}}}_{{\mathrm{Scope}}{,}{5}{,}{1}{,}{1}}\right]$
 $\left[{{K}}_{{0}{,}{"a1"}}{=}{2.}{,}{{K}}_{{0}{,}{"a2"}}{=}{1.}\right]$ (2)
 > $\mathrm{SimplifyModel}\left(\mathrm{sys},\mathrm{inplace}\right)$
 ${\mathrm{sys}}$ (3)
 > $\mathrm{PrintSummary}\left(\mathrm{sys}\right)$
 Equations [4]:
 State Variables [3]:
 Initial Equations [3]:
 Source Equations [2]:
 Input Variables [2]:
 Output Variables [1]:
 Parameters [2]:
 $\left[{\mathrm{D}}{}\left({{x}}_{{4}{,}{1}}\right){=}{{\mathrm{Source}}}_{{\mathrm{Step}}{,}{6}{,}{1}}{-}{{\mathrm{Sink}}}_{{\mathrm{Scope}}{,}{5}{,}{1}{,}{1}}{,}{\mathrm{D}}{}\left({{x}}_{{10}{,}{1}}\right){=}{-}{{K}}_{{0}{,}{"a1"}}{}{{x}}_{{10}{,}{1}}{+}{\mathrm{D}}{}\left({{x}}_{{4}{,}{1}}\right){+}{{x}}_{{4}{,}{1}}{,}{\mathrm{D}}{}\left({{x}}_{{11}{,}{1}}\right){=}{-}{{K}}_{{0}{,}{"a2"}}{}{{x}}_{{11}{,}{1}}{+}{{\mathrm{Source}}}_{{\mathrm{Step}}{,}{7}{,}{1}}{+}{{x}}_{{10}{,}{1}}{,}{{\mathrm{Sink}}}_{{\mathrm{Scope}}{,}{5}{,}{1}{,}{1}}{=}{{x}}_{{11}{,}{1}}\right]$
 $\left[{{x}}_{{4}{,}{1}}{,}{{x}}_{{10}{,}{1}}{,}{{x}}_{{11}{,}{1}}\right]$
 $\left[{{x}}_{{4}{,}{1}}{}\left({0}\right){=}{0}{,}{{x}}_{{10}{,}{1}}{}\left({0}\right){=}{0}{,}{{x}}_{{11}{,}{1}}{}\left({0}\right){=}{0}\right]$
 $\left[{{\mathrm{Source}}}_{{\mathrm{Step}}{,}{6}{,}{1}}{=}\left\{\begin{array}{cc}{0}& {t}{<}{1}\\ {1}& {\mathrm{otherwise}}\end{array}\right\{,}{{\mathrm{Source}}}_{{\mathrm{Step}}{,}{7}{,}{1}}{=}\left\{\begin{array}{cc}{0}& {t}{<}{4}\\ {0.1}& {\mathrm{otherwise}}\end{array}\right\\right]$
 $\left[{{\mathrm{Source}}}_{{\mathrm{Step}}{,}{6}{,}{1}}{,}{{\mathrm{Source}}}_{{\mathrm{Step}}{,}{7}{,}{1}}\right]$
 $\left[{{\mathrm{Sink}}}_{{\mathrm{Scope}}{,}{5}{,}{1}{,}{1}}\right]$
 $\left[{{K}}_{{0}{,}{"a1"}}{=}{2.}{,}{{K}}_{{0}{,}{"a2"}}{=}{1.}\right]$ (4)