Skip to content

Commit

Permalink
removed box/range aliases for CTDirect
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMartinon committed Jul 3, 2024
1 parent 8da8c31 commit 09cf6b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/CTBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export variable!, time!, constraint!, dynamics!, objective!, state!, control!, r
export is_autonomous, is_fixed, is_time_independent, is_time_dependent, is_min, is_max, is_variable_dependent, is_variable_independent
export nlp_constraints!, constraints_labels
export has_free_final_time, has_free_initial_time, has_lagrange_cost, has_mayer_cost
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
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

# solution
export OptimalControlSolution
Expand Down
3 changes: 0 additions & 3 deletions src/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,6 @@ Return the dimension of range constraints on state (`nothing` if not knonw).
Information is updated after `nlp_constraints!` is called.
"""
dim_state_range(ocp::OptimalControlModel) = ocp.dim_state_range
dim_state_box = dim_state_range # alias, CTDirect.jl compatibility

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

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

0 comments on commit 09cf6b2

Please sign in to comment.