Skip to content

Commit 898187b

Browse files
committed
doc: correct cubic equation
1 parent 3ab73ae commit 898187b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/src/manual/nonlinmpc2.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ balance leads to the algebraic equation:
7676
!!! details "Reduction to an ODE"
7777
The algebraic equation can be further manipulated to produce this cubic expression:
7878
```math
79-
0 = a_H^3 + (c_B + K_a) a_H^2 + \big(K_a(c_A + c_B) + K_w \big) a_H - K_w K_a
79+
0 = a_H^3 + (c_B + K_a) a_H^2 + \big(K_a(c_B - c_A) - K_w \big) a_H - K_w K_a
8080
```
8181
We could extract the positive real root of this expression inside the output function
8282
`h!` to transform the system to an ODE, effectively avoiding the complexity of DAEs.

0 commit comments

Comments
 (0)