Skip to content
Open
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
2 changes: 1 addition & 1 deletion ext/OptimalControlModels/robot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function OptimalControlProblems.robot(
end

# initial guess
tf = 1
tf = 9.1
xinit =
t -> [
ρ_t0,
Expand Down
2 changes: 1 addition & 1 deletion ext/OptimalControlModels/space_shuttle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function OptimalControlProblems.space_shuttle(
# initial guess: linear interpolation for h, v, gamma (NB. t0 = 0), constant for the rest
# variable time step seems to be initialized at 1 in jump
# note that ipopt will project the initial guess inside the bounds anyway.
tf_init = (tf_l+tf_u)/2
tf_init = 2000.0
x_init =
t -> [
h_t0 + (t - t0) / (tf_init - t0) * (h_tf - h_t0),
Expand Down
2 changes: 1 addition & 1 deletion ext/OptimalControlModels/steering.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function OptimalControlProblems.steering(
end
end
xinit = t -> [gen_x0(t, i) for i in 1:4]
init = (state=xinit, control=0, variable=1)
init = (state=xinit, control=0, variable=0.6)

# discretise the optimal control problem
docp = direct_transcription(
Expand Down
Loading