You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: problems/path_planning_sgmpc.jl
+51-59Lines changed: 51 additions & 59 deletions
Original file line number
Diff line number
Diff line change
@@ -8,40 +8,38 @@ const DO = Dionysos.Domain
8
8
const PB = Dionysos.Problem
9
9
const ST = Dionysos.System
10
10
11
-
12
11
#TODO: Move to Dionysos.Utils (the function is already there, but it imposes that Q, R, and N must be the same type and *size* and that q and r should be the same type and *size*)
13
-
struct QuadraticStateControlFunction{T} <:
14
-
UT.ScalarControlFunction
15
-
Q::AbstractMatrix{T}
16
-
R::AbstractMatrix{T}
17
-
N::AbstractMatrix{T}
18
-
q::AbstractArray{T}
19
-
r::AbstractArray{T}
20
-
v::T
21
-
22
-
#=
23
-
function QuadraticStateControlFunction(Q::MT, R::MT, N::MT, q::AT, r::AT, v::T) where {T, MT <: AbstractMatrix{T}, AT <: AbstractArray{T}}
24
-
# Perform size checks
25
-
@assert size(Q, 1) == size(Q, 2) "Q must be square"
26
-
@assert size(R, 1) == size(R, 2) "R must be square"
27
-
@assert size(Q, 1) == size(N, 1) "Q and N must have compatible dimensions"
28
-
@assert size(R, 1) == size(N, 2) "R and N must have compatible dimensions"
29
-
@assert size(Q, 1) == length(q) "Q and q must have compatible dimensions"
30
-
@assert size(R, 1) == length(r) "R and r must have compatible dimensions"
0 commit comments