Skip to content

Commit 4ebcdb1

Browse files
committed
Fix format
1 parent 52f2cc8 commit 4ebcdb1

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

problems/path_planning.jl

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ function dynamic()
1818
u[1] * tan(u[2]),
1919
)
2020
end
21-
return F_sys
2221
end
2322

2423
# We define the growth bound function of $f$:
@@ -30,7 +29,7 @@ function jacobian_bound()
3029
end
3130

3231
function jacobian()
33-
return (x, u) ->
32+
return (x, u) -> begin
3433
α = atan(tan(u[2]) / 2)
3534
β = u[1] / cos(α)
3635
return SMatrix{3, 3}(
@@ -79,10 +78,7 @@ function get_obstacles(
7978
]
8079
end
8180

82-
function system(
83-
_X_;
84-
_U_ = UT.HyperRectangle(SVector(-1.0, -1.0), SVector(1.0, 1.0)),
85-
)
81+
function system(_X_; _U_ = UT.HyperRectangle(SVector(-1.0, -1.0), SVector(1.0, 1.0)))
8682
return MathematicalSystems.ConstrainedBlackBoxControlContinuousSystem(
8783
dynamic(),
8884
Dionysos.Utils.get_dims(_X_),
@@ -108,10 +104,8 @@ function problem(; simple = false)
108104
_I_ = UT.HyperRectangle(SVector(0.4, 0.4, 0.0), SVector(0.4, 0.4, 0.0))
109105
_T_ = UT.HyperRectangle(SVector(3.0, 0.3, -100.0), SVector(3.6, 0.8, 100.0))
110106
else
111-
_X_ = UT.HyperRectangle(
112-
SVector(-0.1, -0.1, -pi - 0.4),
113-
SVector(10.1, 10.1, pi + 0.4),
114-
)
107+
_X_ =
108+
UT.HyperRectangle(SVector(-0.1, -0.1, -pi - 0.4), SVector(10.1, 10.1, pi + 0.4))
115109
_I_ = UT.HyperRectangle(SVector(0.4, 0.4, 0.0), SVector(0.4, 0.4, 0.0))
116110
_T_ = UT.HyperRectangle(SVector(9.0, 0.3, -100.0), SVector(9.6, 0.8, 100.0))
117111
end

0 commit comments

Comments
 (0)