Skip to content

Commit e5fb573

Browse files
committed
foo
1 parent c9b43ed commit e5fb573

File tree

3 files changed

+2
-89
lines changed

3 files changed

+2
-89
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "CTBase"
22
uuid = "54762871-cc72-4466-b8e8-f6c8b58076cd"
33
authors = ["Olivier Cots <[email protected]>"]
4-
version = "0.5.7"
4+
version = "0.5.6"
55

66
[deps]
77
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"

src/default.jl

Lines changed: 1 addition & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -141,67 +141,8 @@ function __init_interpolation()
141141
return (T, U) -> Interpolations.linear_interpolation(T, U, extrapolation_bc = Interpolations.Line())
142142
end
143143

144-
# --------------------------------------------------------------------------------------------------
145-
# Direct shooting method - default values
146-
147-
"""
148-
$(TYPEDSIGNATURES)
149-
150-
Used to set the default value of the grid size for the direct shooting method.
151-
The default value is `201`.
152-
"""
153-
__grid_size_direct_shooting() = 201
154-
155-
"""
156-
$(TYPEDSIGNATURES)
157-
158-
Used to set the default value of the penalty term in front of the final constraint for the direct shooting method.
159-
The default value is `1e4`.
160-
"""
161-
__penalty_term_direct_shooting() = 1e4
162-
163-
"""
164-
$(TYPEDSIGNATURES)
165-
166-
Used to set the default value of the maximal number of iterations for the direct shooting method.
167-
The default value is `100`.
168-
"""
169-
__max_iter_direct_shooting() = 100
170-
171-
"""
172-
$(TYPEDSIGNATURES)
173-
174-
Used to set the default value of the absolute tolerance for the stopping criterion for the direct shooting method.
175-
The default value is `10 * eps()`.
176-
"""
177-
__abs_tol_direct_shooting() = 10 * eps()
178-
179-
"""
180-
$(TYPEDSIGNATURES)
181-
182-
Used to set the default value of the optimality relative tolerance for the stopping criterion for the direct shooting method.
183-
The default value is `1e-8`.
184-
"""
185-
__opt_tol_direct_shooting() = 1e-8
186-
187-
"""
188-
$(TYPEDSIGNATURES)
189-
190-
Used to set the default value of the step stagnation relative tolerance for the stopping criterion for the direct shooting method.
191-
The default value is `1e-8`.
192-
"""
193-
__stagnation_tol_direct_shooting() = 1e-8
194-
195144
# ------------------------------------------------------------------------------------
196-
# Direct method - default values
197-
198-
"""
199-
$(TYPEDSIGNATURES)
200-
201-
Used to set the default value of the grid size for the direct method.
202-
The default value is `100`.
203-
"""
204-
__grid_size_direct() = 100
145+
# IPOPT
205146

206147
"""
207148
$(TYPEDSIGNATURES)

test/test_default.jl

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -54,34 +54,6 @@ function test_default()
5454
@test CTBase.__init_interpolation() isa Function
5555
end
5656

57-
@testset "Default value of the grid size for the direct shooting method" begin
58-
@test CTBase.__grid_size_direct_shooting() isa Integer
59-
end
60-
61-
@testset "Default value of the penalty term for the direct shooting method" begin
62-
@test CTBase.__penalty_term_direct_shooting() isa Real
63-
end
64-
65-
@testset "Default value of the maximum number of iterations for the direct shooting method" begin
66-
@test CTBase.__max_iter_direct_shooting() isa Integer
67-
end
68-
69-
@testset "Default value of the absolute tolerance for the direct shooting method" begin
70-
@test CTBase.__abs_tol_direct_shooting() isa Real
71-
end
72-
73-
@testset "Default value of the optimality tolerance for the direct shooting method" begin
74-
@test CTBase.__opt_tol_direct_shooting() isa Real
75-
end
76-
77-
@testset "Default value of the stagnation tolerance for the direct shooting method" begin
78-
@test CTBase.__stagnation_tol_direct_shooting() isa Real
79-
end
80-
81-
@testset "Default value of the grid size for the direct method" begin
82-
@test CTBase.__grid_size_direct() isa Integer
83-
end
84-
8557
@testset "Default value of the print level of ipopt for the direct method" begin
8658
@test CTBase.__print_level_ipopt() isa Integer
8759
@test CTBase.__print_level_ipopt() 12

0 commit comments

Comments
 (0)