Skip to content

Commit 6723130

Browse files
committed
removed: useless arguments in CollocationMethods
1 parent a54f384 commit 6723130

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

src/controller/transcription.jl

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,15 +1450,14 @@ end
14501450

14511451
@doc raw"""
14521452
con_nonlinprogeq!(
1453-
geq, X̂0, Û0, K̇
1453+
geq, _ , Û0, K̇
14541454
mpc::PredictiveController, model::NonLinModel, transcription::TrapezoidalCollocation,
14551455
U0, Z̃
14561456
) -> geq
14571457
14581458
Nonlinear equality constrains for [`NonLinModel`](@ref) and [`TrapezoidalCollocation`](@ref).
14591459
1460-
The method mutates the `geq`, `X̂0`, `Û0` and `K̇` vectors in argument. The deterministic
1461-
state defects are computed with:
1460+
The deterministic state defects are computed with:
14621461
```math
14631462
\mathbf{s_d}(k+j+1) = \mathbf{x_0}(k+j) + 0.5 T_s [\mathbf{k̇}_1(k+j) + \mathbf{k̇}_2(k+j)]
14641463
- \mathbf{x_0}(k+j+1)
@@ -1527,16 +1526,15 @@ end
15271526

15281527
@doc raw"""
15291528
con_nonlinprogeq!(
1530-
geq, X̂0, Û0, K̇,
1529+
geq, _ , Û0, K̇,
15311530
mpc::PredictiveController, model::NonLinModel, transcription::OrthogonalCollocation,
15321531
U0, Z̃
15331532
) -> geq
15341533
15351534
Nonlinear equality constrains for [`NonLinModel`](@ref) and [`OrthogonalCollocation`](@ref).
15361535
1537-
The method mutates the `geq`, `X̂0`, `Û0` and `K̇` vectors in argument. The defects between
1538-
the deterministic state derivative at the ``n_o`` collocation points and the model dynamics
1539-
are computed by:
1536+
The defects between the deterministic state derivative at the ``n_o`` collocation points and
1537+
the model dynamics are computed by:
15401538
```math
15411539
\mathbf{s_k}(k+j)
15421540
= \mathbf{M_o} \begin{bmatrix}
@@ -1583,7 +1581,7 @@ for ``j = 0, 1, ... , H_p-1``. The differentiation matrix ``\mathbf{M_o}``, the
15831581
matrix ``\mathbf{C_o}`` and the coefficient ``λ_o`` are introduced in [`init_orthocolloc`](@ref).
15841582
"""
15851583
function con_nonlinprogeq!(
1586-
geq, X̂0, Û0, K̇,
1584+
geq, _ , Û0, K̇,
15871585
mpc::PredictiveController, model::NonLinModel, transcription::OrthogonalCollocation,
15881586
U0, Z̃
15891587
)

0 commit comments

Comments
 (0)