Skip to content

Commit 09cf6b2

Browse files
removed box/range aliases for CTDirect
1 parent 8da8c31 commit 09cf6b2

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/CTBase.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export variable!, time!, constraint!, dynamics!, objective!, state!, control!, r
250250
export is_autonomous, is_fixed, is_time_independent, is_time_dependent, is_min, is_max, is_variable_dependent, is_variable_independent
251251
export nlp_constraints!, constraints_labels
252252
export has_free_final_time, has_free_initial_time, has_lagrange_cost, has_mayer_cost
253-
export dim_control_constraints, dim_state_constraints, dim_mixed_constraints, dim_path_constraints, dim_boundary_constraints, dim_variable_constraints, dim_control_range, dim_state_range, dim_variable_range, dim_control_box, dim_state_box, dim_variable_box
253+
export dim_control_constraints, dim_state_constraints, dim_mixed_constraints, dim_path_constraints, dim_boundary_constraints, dim_variable_constraints, dim_control_range, dim_state_range, dim_variable_range
254254

255255
# solution
256256
export OptimalControlSolution

src/model.jl

-3
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,6 @@ Return the dimension of range constraints on state (`nothing` if not knonw).
10821082
Information is updated after `nlp_constraints!` is called.
10831083
"""
10841084
dim_state_range(ocp::OptimalControlModel) = ocp.dim_state_range
1085-
dim_state_box = dim_state_range # alias, CTDirect.jl compatibility
10861085

10871086
"""
10881087
$(TYPEDSIGNATURES)
@@ -1091,7 +1090,6 @@ Return the dimension of range constraints on control (`nothing` if not knonw).
10911090
Information is updated after `nlp_constraints!` is called.
10921091
"""
10931092
dim_control_range(ocp::OptimalControlModel) = ocp.dim_control_range
1094-
dim_control_box = dim_control_range # alias, CTDirect.jl compatibility
10951093

10961094
"""
10971095
$(TYPEDSIGNATURES)
@@ -1100,4 +1098,3 @@ Return the dimension of range constraints on variable (`nothing` if not knonw).
11001098
Information is updated after `nlp_constraints!` is called.
11011099
"""
11021100
dim_variable_range(ocp::OptimalControlModel) = ocp.dim_variable_range
1103-
dim_variable_box = dim_variable_range # alias, CTDirect.jl compatibility

0 commit comments

Comments
 (0)