Difference between revisions of "Template:Dimensions"

From mintOC
Jump to: navigation, search
(fixed description of "nd")
(complete rewrite)
Line 1: Line 1:
<includeonly>{| class="infobox"
+
<includeonly>
|- style="text-align:center; width:{{{box_width|55em}}}; text-align:left; font-size:85%;"
+
{{Infobox
|-
+
| bodystyle  = width:auto
!colspan="2" align="center" font-size="125%"|{{PAGENAME}}
+
| labelstyle = font-style:italic; font-weight:normal
|-
+
| datastyle  = text-align:right; font-weight: bold
{{#if:{{{nd|}}}|
+
 
{{!}}align="left"{{!}}''State dimension:''
+
| above  = {{PAGENAME}}
{{!}}align="right"{{!}}'''{{{nd}}}'''
+
 
{{!}}-
+
| label1  = State dimension:
|}}
+
| data1  = {{{nd|}}}
{{#if:{{{nx|}}}|
+
| label2  = Differential states:
{{!}}align="left"{{!}}''Differential states:''
+
| data2  = {{{nx|}}}
{{!}}align="right"{{!}}'''{{{nx}}}'''
+
| label3  = Algebraic states:
{{!}}-
+
| data3  = {{{nz|}}}
|}}
+
| label4  = Continuous control functions:
{{#if:{{{nz|}}}|
+
| data4  = {{{nu|}}}
{{!}}align="left"{{!}}''Algebraic states:''
+
| label5  = Discrete control functions:
{{!}}align="right"{{!}}'''{{{nz}}}'''
+
| data5  = {{{nw|}}}
{{!}}-
+
| label6  = Continuous control values:
|}}
+
| data6  = {{{np|}}}
{{#if:{{{nu|}}}|
+
| label7  = Discrete control values:
{{!}}align="left"{{!}}''Continuous control functions:''
+
| data7  = {{{nrho|}}}
{{!}}align="right"{{!}}'''{{{nu}}}'''
+
| label8  = Path constraints:
{{!}}-
+
| data8  = {{{nc|}}}
|}}
+
| label9  = Interior point inequalities:
{{#if:{{{nw|}}}|
+
| data9  = {{{nri|}}}
{{!}}align="left"{{!}}''Discrete control functions:''
+
| label10 = Interior point equalities:
{{!}}align="right"{{!}}'''{{{nw}}}'''
+
| data10  = {{{nre|}}}
{{!}}-
+
}}
|}}
+
{{#if:{{{np|}}}|
+
{{!}}align="left"{{!}}''Continuous control values:''
+
{{!}}align="right"{{!}}'''{{{np}}}'''
+
{{!}}-
+
|}}
+
{{#if:{{{nrho|}}}|
+
{{!}}align="left"{{!}}''Discrete control values:''
+
{{!}}align="right"{{!}}'''{{{nrho}}}'''
+
{{!}}-
+
|}}
+
{{#if:{{{nc|}}}|
+
{{!}}align="left"{{!}}''Path constraints:''
+
{{!}}align="right"{{!}}'''{{{nc}}}'''
+
{{!}}-
+
|}}
+
{{#if:{{{nri|}}}|
+
{{!}}align="left"{{!}}''Interior point inequalities:''
+
{{!}}align="right"{{!}}'''{{{nri}}}'''
+
{{!}}-
+
|}}
+
{{#if:{{{nre|}}}|
+
{{!}}align="left"{{!}}''Interior point equalities:''
+
{{!}}align="right"{{!}}'''{{{nre}}}'''
+
{{!}}-
+
|}}
+
 
</includeonly>
 
</includeonly>
 
<noinclude><pre>
 
<noinclude><pre>
Line 68: Line 42:
 
|nre      = enter the number of interior point equalities
 
|nre      = enter the number of interior point equalities
 
}}
 
}}
</pre></noinclude>
+
</pre>
 +
 
 +
{{Dimensions
 +
|nd=1
 +
|nx=15
 +
}}
 +
 
 +
</noinclude>

Revision as of 15:11, 25 January 2016

{{Dimensions
|nd        = enter the dimension of the differential states
|nx        = enter the number of differential states
|nz        = enter the number of algebraic states
|nu        = enter the number of continuous control functions
|nw        = enter the number of discrete-valued control functions
|np        = enter the number of time-independent, continuous control values
|nrho      = enter the number of time-independent, discrete control values
|nc        = enter the number of path- and control constraints
|nri       = enter the number of interior point inequalities
|nre       = enter the number of interior point equalities
}}


Dimensions
State dimension: 1
Differential states: 15