Skip to content

Commit 3953073

Browse files
docs: disable OptimizationSystem doc examples
1 parent 48ec10b commit 3953073

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/tutorials/optimization.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Let's solve the classical _Rosenbrock function_ in two dimensions.
66

77
First, we need to make some imports.
88

9-
```@example rosenbrock_2d
9+
```julia
1010
using ModelingToolkit, Optimization, OptimizationOptimJL
1111
```
1212

1313
Now we can define our optimization problem.
1414

15-
```@example rosenbrock_2d
15+
```julia
1616
@variables begin
1717
x, [bounds = (-2.0, 2.0)]
1818
y, [bounds = (-1.0, 3.0)]
@@ -44,7 +44,7 @@ Every optimization problem consists of a set of _optimization variables_. In thi
4444

4545
Next, the actual `OptimizationProblem` can be created. At this stage, an initial guess `u0` for the optimization variables needs to be provided via map, using the symbols from before. Concrete values for the parameters of the system can also be provided or changed. However, if the parameters have default values assigned, they are used automatically.
4646

47-
```@example rosenbrock_2d
47+
```julia
4848
u0 = [x => 1.0
4949
y => 2.0]
5050
p = [a => 1.0
@@ -56,7 +56,7 @@ solve(prob, GradientDescent())
5656

5757
## Rosenbrock Function with Constraints
5858

59-
```@example rosenbrock_2d_cstr
59+
```julia
6060
using ModelingToolkit, Optimization, OptimizationOptimJL
6161

6262
@variables begin

0 commit comments

Comments
 (0)