Skip to content

Commit a5f25e7

Browse files
committed
doc: adding postprocessing in default sparse backend
1 parent 24dda29 commit a5f25e7

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/controller/nonlinmpc.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,16 @@ NonLinMPC controller with a sample time Ts = 10.0 s:
291291
AutoSparse(
292292
AutoForwardDiff();
293293
sparsity_detector = TracerSparsityDetector(),
294-
coloring_algorithm = GreedyColoringAlgorithm((
294+
coloring_algorithm = GreedyColoringAlgorithm(
295+
(
295296
NaturalOrder(),
296297
LargestFirst(),
297298
SmallestLast(),
298299
IncidenceDegree(),
299300
DynamicLargestFirst()
300-
))
301+
),
302+
postprocessing = true
303+
)
301304
)
302305
```
303306
that is, it will test many coloring orders at preparation and keep the best. This is

src/estimator/mhe/construct.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,13 +382,16 @@ MovingHorizonEstimator estimator with a sample time Ts = 10.0 s:
382382
AutoSparse(
383383
AutoForwardDiff();
384384
sparsity_detector = TracerSparsityDetector(),
385-
coloring_algorithm = GreedyColoringAlgorithm((
385+
coloring_algorithm = GreedyColoringAlgorithm(
386+
(
386387
NaturalOrder(),
387388
LargestFirst(),
388389
SmallestLast(),
389390
IncidenceDegree(),
390391
DynamicLargestFirst()
391-
))
392+
),
393+
postprocessing = true
394+
)
392395
)
393396
```
394397
that is, it will test many coloring orders at preparation and keep the best.

0 commit comments

Comments
 (0)