Skip to content

Commit 213194f

Browse files
committed
add a test
1 parent 929b9f5 commit 213194f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/src/batch_linearization.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ plot(
219219
)
220220
```
221221
if we open at both `y` and `v` or we open at `u`, we get controllers for the different values of the scheduling variable, and the corresponding measurement feedback (which is the same as the scheduling variable in this case).
222+
```@example BATCHLIN
223+
using Test
224+
@test all(sminreal.(controllersv) .== sminreal.(controllersu))
225+
```
222226

223227
However, if we only open at `y` we get controller linearizations that _still contain the closed loop through the scheduling connection_ `v`. We can verify this by looking at what variables are present in the input-output map
224228
```@example BATCHLIN
@@ -248,6 +252,5 @@ Batch linearization in multiple different operating points is an intuitive way t
248252

249253

250254
```@example BATCHLIN
251-
using Test
252255
@test sol(6.99, idxs=closed_loop.duffing.y.u) ≈ 0.0 atol=0.01
253256
```

0 commit comments

Comments
 (0)