Skip to content

Commit ea4a3e9

Browse files
authored
Merge pull request #126 from control-toolbox/flow
Flow
2 parents 4e03751 + 55adbf5 commit ea4a3e9

File tree

7 files changed

+799
-187
lines changed

7 files changed

+799
-187
lines changed

Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ version = "0.3.0"
77
CTBase = "54762871-cc72-4466-b8e8-f6c8b58076cd"
88
CTDirect = "790bbbee-bee9-49ee-8912-a9de031322d5"
99
CTDirectShooting = "e0e6c04b-5022-4cd2-bea2-4a09fff39444"
10-
HamiltonianFlows = "5fb78580-10a0-4606-82bc-07a60f425ab3"
10+
CTFlows = "1c39547c-7794-42f7-af83-d98194f657c2"
1111
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1212

1313
[compat]
1414
CTBase = "0.4"
1515
CTDirect = "0.1"
1616
CTDirectShooting = "0.1"
17-
HamiltonianFlows = "1.0"
1817
Reexport = "1.2"
1918
julia = "1.8"

examples/goddard_f.ipynb

Lines changed: 794 additions & 109 deletions
Large diffs are not rendered by default.

src/OptimalControl.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ using CTDirect
99
using CTDirectShooting
1010

1111
# flows
12-
@reexport using HamiltonianFlows
13-
import HamiltonianFlows: Flow
12+
@reexport using CTFlows
1413

1514
# Other declarations
1615
const __display = CTBase.__display
1716

1817
# resources
19-
include("flows.jl")
2018
include("solve.jl")
2119

2220
# ----------------------------------------
@@ -26,6 +24,5 @@ include("CTBase.jl")
2624

2725
# export functions only for user
2826
export solve
29-
export Flow
3027

3128
end

src/flows.jl

Lines changed: 0 additions & 67 deletions
This file was deleted.

test/Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[deps]
2-
CTProblemLibrary = "0649932a-8c77-4f67-b1e4-c19ddd080280"
2+
CTProblems = "45d9ea3f-a92f-411f-833f-222dd4fb9cd8"
33
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
44
MINPACK = "4854310b-de5a-5eb6-a2a5-c1dee2bd17f9"
5-
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
65
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
76

87
[compat]

test/runtests.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using OptimalControl
22
using Test
3-
using Plots
43
using LinearAlgebra
54
using MINPACK
6-
using CTProblemLibrary
5+
using CTProblems
76

87
# functions and types that are not exported
98

test/test_goddard_direct.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ ocp = prob.model
55
init = [1.01, 0.25, 0.5, 0.4]
66
sol = solve(ocp, grid_size=10, print_level=0, init=init)
77

8-
@test objective(sol) -1.0 atol=1e-1
8+
@test sol.objective -1.0 atol=1e-1
99
#@test constraints_violation(sol) < 1e-6

0 commit comments

Comments
 (0)