Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,8 @@ plans and reports.
beta is the human's choice: if the request does not say, ask; never infer it. State in
the proposal the versions you apply: ct-agents, ct-conventions, and the commit of the
CTActions clone `release.jl` runs from.
- **Add a problem, or a modeling of one.** Specific to this repository: follow
[`ext/README.md`](ext/README.md). Before the tests, run the linter,
`julia --project tools/lint/problems.jl <problem>`, until it reports no ❌. No ❌ does not
mean the problem is right: paste the ℹ️ checklist of its report in the pull request and
tick each box, or say why it is not ticked.
11 changes: 7 additions & 4 deletions ext/JuMPModels/balanced_field.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ function OptimalControlProblems.balanced_field(
γ_tf = params[:γ_tf]

α_min = params[:α_min]
v_min = params[:v_min]
h_min = params[:h_min]
tf_min = params[:tf_min]
α_max_ctrl = params[:α_max_ctrl]

# Constants
Expand Down Expand Up @@ -79,12 +82,12 @@ function OptimalControlProblems.balanced_field(
data = ProblemData(;
state=[
Component("r"),
Component("v"; lower=1.0),
Component("h"; lower=0.0),
Component("v"; lower=v_min),
Component("h"; lower=h_min),
Component("γ"),
],
control=[Component("α"; lower=0, upper=α_max_ctrl)],
variable=[Component("tf"; lower=0.1)],
control=[Component("α"; lower=α_min, upper=α_max_ctrl)],
variable=[Component("tf"; lower=tf_min)],
costate=["∂r", "∂v", "∂h", "∂γ"],
times=v -> (t0, v[1]),
dynamics=(x, u, v, t) -> dynamics(x, u),
Expand Down
6 changes: 4 additions & 2 deletions ext/JuMPModels/brachistochrone.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ function OptimalControlProblems.brachistochrone(
yf = params[:yf]
u_min = params[:u_min]
u_max = params[:u_max]
tf_l = params[:tf_l]
tf_u = params[:tf_u]

data = ProblemData(;
state=[Component("px"), Component("py"), Component("v")],
control=[Component("u"; lower=-1.57, upper=1.57)],
variable=[Component("tf"; lower=0.1, upper=20.0)],
control=[Component("u"; lower=u_min, upper=u_max)],
variable=[Component("tf"; lower=tf_l, upper=tf_u)],
costate=["∂px", "∂py", "∂v"],
times=v -> (t0, v[1]),
# Dymos formulation
Expand Down
1 change: 0 additions & 1 deletion ext/JuMPModels/mountain_car.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ function OptimalControlProblems.mountain_car(
# parameters
params = parameters_data(:mountain_car, parameters)
t0 = params[:t0]
tf_start = params[:tf_start]
tf_min = params[:tf_min]
pos_t0 = params[:pos_t0]
vel_t0 = params[:vel_t0]
Expand Down
2 changes: 0 additions & 2 deletions ext/JuMPModels/space_shuttle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ function OptimalControlProblems.space_shuttle(
ψ_t0 = params[:ψ_t0]

# for initial guess
α_s = params[:α_s]
β_s = params[:β_s]

## Final conditions, the so-called Terminal Area Energy Management (TAEM)
h_tf = params[:h_tf]
Expand Down
23 changes: 8 additions & 15 deletions ext/MetaData/balanced_field.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ balanced_field_meta = OrderedDict(
γ_t0=0.0, # initial flight path angle (rad)
h_tf=10.668, # final altitude (35 ft in m)
γ_tf=0.0873, # final flight path angle (5 degrees in rad)
v_min=0.0,
v_max=100.0,
α_min=-0.1745, # -10 degrees
v_min=1.0,
α_min=0.0,
α_max_ctrl=0.2618, # 15 degrees
h_min=0.0,
tf_min=0.1,
),
:parameter_info => (
t0=(unit="s", meaning="initial time, at the speed V1"),
Expand All @@ -50,19 +51,11 @@ balanced_field_meta = OrderedDict(
γ_t0=(unit="rad", meaning="initial flight path angle"),
h_tf=(unit="m", meaning="final altitude, the screen height of 35 ft"),
γ_tf=(unit="rad", meaning="final flight path angle, 5°"),
v_min=(
unit="m/s",
meaning="lower bound of the velocity (not used by the models yet, which use 1)",
),
v_max=(
unit="m/s",
meaning="upper bound of the velocity (not used by the models yet)",
),
α_min=(
unit="rad",
meaning="lower bound of the angle of attack (not used by the models yet, which use 0)",
),
v_min=(unit="m/s", meaning="lower bound of the velocity"),
α_min=(unit="rad", meaning="lower bound of the angle of attack"),
α_max_ctrl=(unit="rad", meaning="upper bound of the angle of attack"),
h_min=(unit="m", meaning="lower bound of the altitude"),
tf_min=(unit="s", meaning="lower bound of the final time"),
),
:status => (OptimalControl=:valid, OptimalControlScalarized=:valid, JuMP=:valid),
# initial guess of every modeling (#377), from the parameters
Expand Down
18 changes: 8 additions & 10 deletions ext/MetaData/brachistochrone.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ brachistochrone_meta = OrderedDict(
v0=0.0,
xf=10.0,
yf=5.0,
u_min=(-pi),
u_max=pi,
u_min=-1.57,
u_max=1.57,
tf_l=0.1,
tf_u=20.0,
),
:parameter_info => (
g=(unit="m/s²", meaning="gravitational acceleration"),
Expand All @@ -19,14 +21,10 @@ brachistochrone_meta = OrderedDict(
v0=(unit="m/s", meaning="initial speed"),
xf=(unit="m", meaning="final horizontal position px"),
yf=(unit="m", meaning="final vertical position py"),
u_min=(
unit="rad",
meaning="lower bound of the angle u (not read by the models yet, which use −1.57)",
),
u_max=(
unit="rad",
meaning="upper bound of the angle u (not read by the models yet, which use 1.57)",
),
u_min=(unit="rad", meaning="lower bound of the angle u"),
u_max=(unit="rad", meaning="upper bound of the angle u"),
tf_l=(unit="s", meaning="lower bound of the final time"),
tf_u=(unit="s", meaning="upper bound of the final time"),
),
:status => (OptimalControl=:valid, OptimalControlScalarized=:valid, JuMP=:valid),
# initial guess of every modeling (#377), from the parameters
Expand Down
6 changes: 3 additions & 3 deletions ext/MetaData/references/balanced_field.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
[trapeze]
agreement = true
grid_size = 200
parameters = "(t0 = 0.0, m = 79015.8, g = 9.80665, ρ = 1.225, S = 124.7, CD0 = 0.03, AR = 9.45, e = 0.801, CL0 = 0.5, CL_max = 2.0, h_w = 1.0, span = 35.7, α_max = 0.1745, T = 120102.0, r_t0 = 600.0, v_t0 = 70.0, h_t0 = 0.0, γ_t0 = 0.0, h_tf = 10.668, γ_tf = 0.0873, v_min = 0.0, v_max = 100.0, α_min = -0.1745, α_max_ctrl = 0.2618)"
run = "https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387105573 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387108959 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387112175 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387115100"
parameters = "(t0 = 0.0, m = 79015.8, g = 9.80665, ρ = 1.225, S = 124.7, CD0 = 0.03, AR = 9.45, e = 0.801, CL0 = 0.5, CL_max = 2.0, h_w = 1.0, span = 35.7, α_max = 0.1745, T = 120102.0, r_t0 = 600.0, v_t0 = 70.0, h_t0 = 0.0, γ_t0 = 0.0, h_tf = 10.668, γ_tf = 0.0873, v_min = 1.0, α_min = 0.0, α_max_ctrl = 0.2618, h_min = 0.0, tf_min = 0.1)"
run = "https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/44015064560 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/44235205662 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/44455617205 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387115100"
source = "computed"
spread = 2.4538248057585183e-9
value = 771.0114003220631
Expand Down Expand Up @@ -54,7 +54,7 @@ value = 771.0114003220631
[[trapeze.results]]
configuration = "modeler=adnlp solver=ipopt"
modeling = "OptimalControl"
objective = 771.0114003040652
objective = 771.0114003040649
platform = "cron-OptimalControl-1.13-ubuntu-latest"
[[trapeze.results]]
configuration = "modeler=adnlp solver=ipopt"
Expand Down
6 changes: 3 additions & 3 deletions ext/MetaData/references/brachistochrone.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
[trapeze]
agreement = false
grid_size = 500
parameters = "(g = 9.80665, t0 = 0.0, x0 = 0.0, y0 = 10.0, v0 = 0.0, xf = 10.0, yf = 5.0, u_min = -3.141592653589793, u_max = π)"
run = "https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387105573 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387108959 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387112175 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387115100"
parameters = "(g = 9.80665, t0 = 0.0, x0 = 0.0, y0 = 10.0, v0 = 0.0, xf = 10.0, yf = 5.0, u_min = -1.57, u_max = 1.57, tf_l = 0.1, tf_u = 20.0)"
run = "https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/44015064560 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/44235205662 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/44455617205 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387115100"
source = "computed"
spread = 0.02249897337664817
value = 1.802932061276909
Expand Down Expand Up @@ -54,7 +54,7 @@ value = 1.802932061276909
[[trapeze.results]]
configuration = "modeler=adnlp solver=ipopt"
modeling = "OptimalControl"
objective = 1.802932006652922
objective = 1.8029320066529235
platform = "cron-OptimalControl-1.13-ubuntu-latest"
[[trapeze.results]]
configuration = "modeler=adnlp solver=ipopt"
Expand Down
10 changes: 5 additions & 5 deletions ext/MetaData/references/space_shuttle.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
[trapeze]
agreement = true
grid_size = 500
parameters = "(t0 = 0, w = 203000.0, g₀ = 32.174, ρ₀ = 0.002378, hᵣ = 23800, Rₑ = 20902900, μ = 1.4076539e16, S = 2690, a₀ = -0.20704, a₁ = 0.029244, b₀ = 0.07854, b₁ = -0.0061592, b₂ = 0.000621408, tf_l = 1500.0, tf_u = 2500.0, h_t0 = 2.6, ϕ_t0 = 0.0, θ_t0 = 0.0, v_t0 = 2.56, γ_t0 = -0.017453292519943295, ψ_t0 = 1.5707963267948966, α_t0 = 0.0, α_s = 0.0, β_s = 0.0, h_tf = 0.8, v_tf = 0.25, γ_tf = -0.08726646259971647, h_l = 0, ϕ_l = -6.283185307179586, ϕ_u = 6.283185307179586, θ_l = -1.5533430342749532, θ_u = 1.5533430342749532, v_l = 0.0001, γ_l = -1.5533430342749532, γ_u = 1.5533430342749532, ψ_l = -6.283185307179586, ψ_u = 6.283185307179586, α_l = -1.5707963267948966, α_u = 1.5707963267948966, β_l = -1.5533430342749532, β_u = 0.017453292519943295)"
run = "https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387105573 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387108959 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387112175 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387115100"
parameters = "(t0 = 0, w = 203000.0, g₀ = 32.174, ρ₀ = 0.002378, hᵣ = 23800, Rₑ = 20902900, μ = 1.4076539e16, S = 2690, a₀ = -0.20704, a₁ = 0.029244, b₀ = 0.07854, b₁ = -0.0061592, b₂ = 0.000621408, tf_l = 1500.0, tf_u = 2500.0, h_t0 = 2.6, ϕ_t0 = 0.0, θ_t0 = 0.0, v_t0 = 2.56, γ_t0 = -0.017453292519943295, ψ_t0 = 1.5707963267948966, α_s = 0.0, β_s = 0.0, h_tf = 0.8, v_tf = 0.25, γ_tf = -0.08726646259971647, h_l = 0, ϕ_l = -6.283185307179586, ϕ_u = 6.283185307179586, θ_l = -1.5533430342749532, θ_u = 1.5533430342749532, v_l = 0.0001, γ_l = -1.5533430342749532, γ_u = 1.5533430342749532, ψ_l = -6.283185307179586, ψ_u = 6.283185307179586, α_l = -1.5707963267948966, α_u = 1.5707963267948966, β_l = -1.5533430342749532, β_u = 0.017453292519943295)"
run = "https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/44015064560 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/44235205662 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/44455617205 https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/42387115100"
source = "computed"
spread = 6.232111392599022e-10
value = -0.5958750133508789
Expand Down Expand Up @@ -54,7 +54,7 @@ value = -0.5958750133508789
[[trapeze.results]]
configuration = "modeler=adnlp solver=ipopt"
modeling = "OptimalControl"
objective = -0.5958750133627936
objective = -0.5958750133627926
platform = "cron-OptimalControl-1.13-ubuntu-latest"
[[trapeze.results]]
configuration = "modeler=adnlp solver=ipopt"
Expand Down Expand Up @@ -99,7 +99,7 @@ value = -0.5958750133508789
[[trapeze.results]]
configuration = "modeler=exa solver=madnlp"
modeling = "OptimalControl"
objective = -0.595875013315046
objective = -0.5958750133150457
platform = "cron-OptimalControl-1.13-ubuntu-latest"
[[trapeze.results]]
configuration = "modeler=exa solver=madnlp"
Expand Down Expand Up @@ -144,7 +144,7 @@ value = -0.5958750133508789
[[trapeze.results]]
configuration = "modeler=exa solver=madnlp"
modeling = "OptimalControlScalarized"
objective = -0.595875013315046
objective = -0.5958750133150457
platform = "cron-OptimalControlScalarized-1.13-ubuntu-latest"
[[trapeze.results]]
configuration = "modeler=exa solver=madnlp"
Expand Down
5 changes: 0 additions & 5 deletions ext/MetaData/space_shuttle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ space_shuttle_meta = OrderedDict(
v_t0=2.56, # velocity (ft/sec) / 1e4,
γ_t0=deg2rad(-1), # flight path angle (rad),
ψ_t0=deg2rad(90), # azimuth (rad),
α_t0=deg2rad(0), # angle of attack (rad),
## for initial guess
α_s=deg2rad(0), # angle of attack (rad)
β_s=deg2rad(0), # bank angle (rad),
Expand Down Expand Up @@ -77,10 +76,6 @@ space_shuttle_meta = OrderedDict(
v_t0=(unit="10⁴ ft/s", meaning="initial velocity"),
γ_t0=(unit="rad", meaning="initial flight path angle"),
ψ_t0=(unit="rad", meaning="initial azimuth"),
α_t0=(
unit="rad",
meaning="initial angle of attack (not used by the models nor the initial guess)",
),
α_s=(unit="rad", meaning="angle of attack of the initial guess"),
β_s=(unit="rad", meaning="bank angle of the initial guess"),
h_tf=(
Expand Down
10 changes: 3 additions & 7 deletions ext/ModelingToolkitModels/chain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ Default parameters and the modeling status are available through
`problem_metadata(:chain)` and `OptimalControlProblems.status(:chain)`.
"""
function OptimalControlProblems.chain(
::ModelingToolkitBackend;
parameters::Union{Nothing,NamedTuple}=nothing,
init=nothing,
::ModelingToolkitBackend; parameters::Union{Nothing,NamedTuple}=nothing, init=nothing
)
OptimalControlProblems.Catalogue._warn_if_draft(:chain, :ModelingToolkit)
params = OptimalControlProblems.parameters_data(:chain, parameters)
t0, tf = float(params[:t0]), float(params[:tf])
tf = float(params[:tf])
L = float(params[:L])
a, b = float(params[:a]), float(params[:b])
x₂_t0, x₃_t0 = float(params[:x₂_t0]), float(params[:x₃_t0])
Expand All @@ -31,9 +29,7 @@ function OptimalControlProblems.chain(
ModelingToolkit.@variables u(..) [input = true]

eqs = [
D(x₁(t)) ~ u(t),
D(x₂(t)) ~ x₁(t) * sqrt(1 + u(t)^2),
D(x₃(t)) ~ sqrt(1 + u(t)^2),
D(x₁(t)) ~ u(t), D(x₂(t)) ~ x₁(t) * sqrt(1 + u(t)^2), D(x₃(t)) ~ sqrt(1 + u(t)^2)
]
# a Mayer cost: the final value of x₂
costs = [x₂(tf)]
Expand Down
2 changes: 1 addition & 1 deletion ext/ModelingToolkitModels/jackson.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function OptimalControlProblems.jackson(
)
OptimalControlProblems.Catalogue._warn_if_draft(:jackson, :ModelingToolkit)
params = OptimalControlProblems.parameters_data(:jackson, parameters)
t0, tf = float(params[:t0]), float(params[:tf])
tf = float(params[:tf])
k1, k2, k3 = params[:k1], params[:k2], params[:k3]
a_l, a_u = float(params[:a_l]), float(params[:a_u])
b_l, b_u = float(params[:b_l]), float(params[:b_u])
Expand Down
11 changes: 7 additions & 4 deletions ext/OptimalControlModels/balanced_field.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ function OptimalControlProblems.balanced_field(
γ_tf = params[:γ_tf]

α_min = params[:α_min]
v_min = params[:v_min]
h_min = params[:h_min]
tf_min = params[:tf_min]
α_max_ctrl = params[:α_max_ctrl]

# Constants
Expand All @@ -61,10 +64,10 @@ function OptimalControlProblems.balanced_field(
h(tf) == h_tf
γ(tf) == γ_tf

0 ≤ α(t) ≤ α_max_ctrl # alpha
tf ≥ 0.1
h(t) ≥ 0
v(t) ≥ 1.0
α_min ≤ α(t) ≤ α_max_ctrl
tf ≥ tf_min
h(t) ≥ h_min
v(t) ≥ v_min

ẋ(t) == dynamics(x(t), α(t), m, g, ρ, S, CD0, CL0, CL_max, α_max, T, b, K_nom, h_w)

Expand Down
6 changes: 4 additions & 2 deletions ext/OptimalControlModels/brachistochrone.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ function OptimalControlProblems.brachistochrone(
yf = params[:yf]
u_min = params[:u_min]
u_max = params[:u_max]
tf_l = params[:tf_l]
tf_u = params[:tf_u]

ocp = @def begin
tf ∈ R, variable
Expand All @@ -32,8 +34,8 @@ function OptimalControlProblems.brachistochrone(
z = (px, py, v) ∈ R³, state
u ∈ R, control

-1.57 ≤ u(t) ≤ 1.57
0.1 ≤ tf ≤ 20.0
u_min ≤ u(t) ≤ u_max
tf_l ≤ tf ≤ tf_u

px(t0) == x0
py(t0) == y0
Expand Down
1 change: 0 additions & 1 deletion ext/OptimalControlModels/mountain_car.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ function OptimalControlProblems.mountain_car(
# parameters
params = parameters_data(:mountain_car, parameters)
t0 = params[:t0]
tf_start = params[:tf_start]
tf_min = params[:tf_min]
pos_t0 = params[:pos_t0]
vel_t0 = params[:vel_t0]
Expand Down
2 changes: 0 additions & 2 deletions ext/OptimalControlModels/space_shuttle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ function OptimalControlProblems.space_shuttle(
ψ_t0 = params[:ψ_t0]

# for initial guess
α_s = params[:α_s]
β_s = params[:β_s]

## Final conditions, the so-called Terminal Area Energy Management (TAEM)
h_tf = params[:h_tf]
Expand Down
11 changes: 7 additions & 4 deletions ext/OptimalControlScalarizedModels/balanced_field.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ function OptimalControlProblems.balanced_field(
γ_tf = params[:γ_tf]

α_min = params[:α_min]
v_min = params[:v_min]
h_min = params[:h_min]
tf_min = params[:tf_min]
α_max_ctrl = params[:α_max_ctrl]

# Constants
Expand All @@ -62,10 +65,10 @@ function OptimalControlProblems.balanced_field(
h(tf) == h_tf
γ(tf) == γ_tf

0 ≤ α(t) ≤ α_max_ctrl
tf ≥ 0.1
h(t) ≥ 0
v(t) ≥ 1.0
α_min ≤ α(t) ≤ α_max_ctrl
tf ≥ tf_min
h(t) ≥ h_min
v(t) ≥ v_min

# dynamics
q = 0.5 * ρ * v(t)^2
Expand Down
6 changes: 4 additions & 2 deletions ext/OptimalControlScalarizedModels/brachistochrone.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ function OptimalControlProblems.brachistochrone(
yf = params[:yf]
u_min = params[:u_min]
u_max = params[:u_max]
tf_l = params[:tf_l]
tf_u = params[:tf_u]

# model
ocp = @def begin
Expand All @@ -37,8 +39,8 @@ function OptimalControlProblems.brachistochrone(
z = (px, py, v) ∈ R³, state
u ∈ R, control

-1.57 ≤ u(t) ≤ 1.57
0.1 ≤ tf ≤ 20.0
u_min ≤ u(t) ≤ u_max
tf_l ≤ tf ≤ tf_u

z(t0) == [x0, y0, v0]

Expand Down
1 change: 0 additions & 1 deletion ext/OptimalControlScalarizedModels/mountain_car.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ function OptimalControlProblems.mountain_car(
# parameters
params = parameters_data(:mountain_car, parameters)
t0 = params[:t0]
tf_start = params[:tf_start]
tf_min = params[:tf_min]
pos_t0 = params[:pos_t0]
vel_t0 = params[:vel_t0]
Expand Down
2 changes: 0 additions & 2 deletions ext/OptimalControlScalarizedModels/space_shuttle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ function OptimalControlProblems.space_shuttle(
ψ_t0 = params[:ψ_t0]

# for initial guess
α_s = params[:α_s]
β_s = params[:β_s]

## Final conditions, the so-called Terminal Area Energy Management (TAEM)
h_tf = params[:h_tf]
Expand Down
Loading
Loading