You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/manual/manual/contractors/analytic/ctcinverse.rst
+50-1Lines changed: 50 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,14 @@ To represent the vectors :math:`\mathbf{x}\in\mathbb{R}^n` consistent with the c
84
84
:end-before: [ctcinv-1-end]
85
85
:dedent: 4
86
86
87
+
.. group-tab:: Matlab
88
+
89
+
.. literalinclude:: src.m
90
+
:language: matlab
91
+
:start-after: [ctcinv-1-beg]
92
+
:end-before: [ctcinv-1-end]
93
+
:dedent: 0
94
+
87
95
The contractor can be used as an operator to contract a 2d box :math:`[\mathbf{x}]`. It can also be involved in a paver in order to reveal the constraint:
88
96
89
97
.. tabs::
@@ -104,6 +112,14 @@ The contractor can be used as an operator to contract a 2d box :math:`[\mathbf{x
104
112
:end-before: [ctcinv-2-end]
105
113
:dedent: 4
106
114
115
+
.. group-tab:: Matlab
116
+
117
+
.. literalinclude:: src.m
118
+
:language: matlab
119
+
:start-after: [ctcinv-2-beg]
120
+
:end-before: [ctcinv-2-end]
121
+
:dedent: 0
122
+
107
123
Which produces the following output:
108
124
109
125
.. figure:: ./himmelblau_50.png
@@ -131,6 +147,15 @@ We recall that for thick solution sets, one should prefer the use of the ``SepIn
131
147
:end-before: [ctcinv-3-end]
132
148
:dedent: 4
133
149
150
+
.. group-tab:: Matlab
151
+
152
+
.. literalinclude:: src.m
153
+
:language: matlab
154
+
:start-after: [ctcinv-3-beg]
155
+
:end-before: [ctcinv-3-end]
156
+
:dedent: 0
157
+
158
+
134
159
.. figure:: ./himmelblau_50_inner.png
135
160
:width:400px
136
161
@@ -163,6 +188,14 @@ can be easily approximated by the following union of contractors:
163
188
:end-before: [ctcinv-4-end]
164
189
:dedent: 4
165
190
191
+
.. group-tab:: Matlab
192
+
193
+
.. literalinclude:: src.m
194
+
:language: matlab
195
+
:start-after: [ctcinv-4-beg]
196
+
:end-before: [ctcinv-4-end]
197
+
:dedent: 0
198
+
166
199
.. figure:: ./himmelblau_50_150_250.png
167
200
:width:400px
168
201
@@ -302,14 +335,22 @@ When the constraint is a complement constraint :math:`\mathbf{f}(\mathbf{x})\not
302
335
:end-before: [ctcinv-5-end]
303
336
:dedent: 4
304
337
338
+
.. group-tab:: Matlab
339
+
340
+
.. literalinclude:: src.m
341
+
:language: matlab
342
+
:start-after: [ctcinv-5-beg]
343
+
:end-before: [ctcinv-5-end]
344
+
:dedent: 0
345
+
305
346
306
347
Miscellaneous
307
348
-------------
308
349
309
350
Access to the underlying function
310
351
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
311
352
312
-
The underlying analytic function can be accessed through ``.function()`` (useful for dimension checks or meta-programming).
353
+
The underlying analytic function can be accessed through ``.f()`` (useful for dimension checks or meta-programming).
313
354
314
355
.. tabs::
315
356
@@ -329,6 +370,14 @@ The underlying analytic function can be accessed through ``.function()`` (useful
0 commit comments