We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d082f57 commit a9558fdCopy full SHA for a9558fd
docs/src/tutorials/constraints.md
@@ -43,6 +43,7 @@ Let's check that the constraints are satisfied and the objective is lower than a
43
res = zeros(2)
44
cons(res, sol.u, _p)
45
prob.f(sol.u, _p)
46
+nothing # hide
47
```
48
49
We can also use the Ipopt library with the OptimizationMOI package.
@@ -56,14 +57,15 @@ res = zeros(2)
56
57
58
println(res)
59
60
61
62
63
We can also use ModelingToolkit as our AD backend and generate symbolic derivatives and expression graph for the objective and constraints.
64
65
Let's modify the bounds to use the function as an equality constraint. The constraint now becomes -
66
67
-```
68
+```math
69
\begin{align}
70
71
x_1^2 + x_2^2 = 1.0 \\
0 commit comments