Skip to content

Commit b7c6039

Browse files
committed
doc: RandomOrder in NonLinMPC and MovingHorizonEstimator extended help
1 parent a93b51b commit b7c6039

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/controller/nonlinmpc.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,12 @@ NonLinMPC controller with a sample time Ts = 10.0 s:
293293
sparsity_detector = TracerSparsityDetector(),
294294
coloring_algorithm = GreedyColoringAlgorithm(
295295
(
296-
NaturalOrder(),
297-
LargestFirst(),
298-
SmallestLast(),
299-
IncidenceDegree(),
300-
DynamicLargestFirst()
296+
NaturalOrder(),
297+
LargestFirst(),
298+
SmallestLast(),
299+
IncidenceDegree(),
300+
DynamicLargestFirst(),
301+
RandomOrder(StableRNG(0), 0)
301302
),
302303
postprocessing = true
303304
)

src/estimator/mhe/construct.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,12 @@ MovingHorizonEstimator estimator with a sample time Ts = 10.0 s:
384384
sparsity_detector = TracerSparsityDetector(),
385385
coloring_algorithm = GreedyColoringAlgorithm(
386386
(
387-
NaturalOrder(),
388-
LargestFirst(),
389-
SmallestLast(),
390-
IncidenceDegree(),
391-
DynamicLargestFirst()
387+
NaturalOrder(),
388+
LargestFirst(),
389+
SmallestLast(),
390+
IncidenceDegree(),
391+
DynamicLargestFirst(),
392+
RandomOrder(StableRNG(0), 0)
392393
),
393394
postprocessing = true
394395
)

0 commit comments

Comments
 (0)