Skip to content

Commit 8ea59c4

Browse files
Merge pull request #21 from harmoniqs/dev/struct-functions
fix: bump version to 0.2.6 and comment out broken function calls in solver
2 parents cedf3af + 9d3e764 commit 8ea59c4

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DirectTrajOpt"
22
uuid = "c823fa1f-8872-4af5-b810-2b9b72bbbf56"
33
authors = ["Aaron Trowbridge <aaron.j.trowbridge@gmail.com> and contributors"]
4-
version = "0.2.5"
4+
version = "0.2.6"
55

66
[deps]
77
ExponentialAction = "e24c0720-ea99-47e8-929e-571b494574d3"

src/solvers/ipopt_solver/solver.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ function DC.solve!(
4747

4848
update_trajectory!(prob, optimizer, variables)
4949

50-
remove_slack_variables!(prob)
50+
# TODO: this is broken, it mixes up component names
51+
# remove_slack_variables!(prob)
5152

5253
return nothing
5354
end
@@ -209,7 +210,10 @@ function update_trajectory!(
209210
end
210211
global_data = (; (global_keys .=> global_values)...)
211212

212-
prob.trajectory = NamedTrajectory(datavec, global_data, prob.trajectory)
213+
update!(prob.trajectory, datavec)
214+
215+
# TODO: this results in a bug of shifted components when components are added after creating a trajectory, this affects constraints which store original componentes in probs
216+
# prob.trajectory = NamedTrajectory(datavec, global_data, prob.trajectory)
213217

214218
return nothing
215219
end

0 commit comments

Comments
 (0)