Skip to content

Commit 7e3ab46

Browse files
committed
doc: explicit color orders
1 parent 364ac2b commit 7e3ab46

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/controller/nonlinmpc.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,16 @@ NonLinMPC controller with a sample time Ts = 10.0 s:
291291
AutoSparse(
292292
AutoForwardDiff();
293293
sparsity_detector = TracerSparsityDetector(),
294-
coloring_algorithm = GreedyColoringAlgorithm(ALL_COLORING_ORDERS)
294+
coloring_algorithm = GreedyColoringAlgorithm((
295+
NaturalOrder(),
296+
LargestFirst(),
297+
SmallestLast(),
298+
IncidenceDegree(),
299+
DynamicLargestFirst()
300+
))
295301
)
296302
```
297-
that is, it will test all coloring orders at preparation and keep the best. This is
303+
that is, it will test many coloring orders at preparation and keep the best. This is
298304
also the sparse backend selected for the Hessian of the Lagrangian function if
299305
`oracle=true` and `hessian=true`, which is the second exception. Second order
300306
derivatives are only supported with `oracle=true` option.

src/estimator/mhe/construct.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,13 @@ MovingHorizonEstimator estimator with a sample time Ts = 10.0 s:
382382
AutoSparse(
383383
AutoForwardDiff();
384384
sparsity_detector = TracerSparsityDetector(),
385-
coloring_algorithm = GreedyColoringAlgorithm(ALL_COLORING_ORDERS)
385+
coloring_algorithm = GreedyColoringAlgorithm((
386+
NaturalOrder(),
387+
LargestFirst(),
388+
SmallestLast(),
389+
IncidenceDegree(),
390+
DynamicLargestFirst()
391+
))
386392
)
387393
```
388394
that is, it will test all coloring orders at preparation and keep the best.

0 commit comments

Comments
 (0)