@@ -196,24 +196,28 @@ const DCostate = ctVector
196
196
#
197
197
include (" exception.jl" )
198
198
include (" description.jl" )
199
- include (" callback.jl" )
200
199
include (" default.jl" )
201
200
include (" types.jl" )
201
+ include (" functions.jl" )
202
202
include (" utils.jl" )
203
+
204
+ # Optimal Control Model
205
+ include (" optimal_control_model-type.jl" )
206
+ include (" optimal_control_model-getters.jl" )
207
+ include (" optimal_control_model-setters.jl" )
208
+
209
+ # Optimal Control Solution
210
+ include (" optimal_control_solution-type.jl" )
211
+ include (" optimal_control_solution-getters.jl" )
212
+ include (" optimal_control_solution-setters.jl" )
213
+
203
214
#
204
- include (" checking.jl" )
205
- #
206
- include (" print.jl" )
207
- #
208
- include (" functions.jl" )
209
- include (" model.jl" )
210
215
include (" differential_geometry.jl" )
211
- #
212
216
include (" ctparser_utils.jl" )
213
217
include (" onepass.jl" )
214
218
include (" repl.jl" )
215
- #
216
219
include (" init.jl" )
220
+ include (" print.jl" )
217
221
218
222
# numeric types
219
223
export ctNumber, ctVector, Time, Times, TimesDisc
@@ -223,10 +227,6 @@ export DState, DCostate
223
227
export TimeDependence, Autonomous, NonAutonomous
224
228
export VariableDependence, NonFixed, Fixed
225
229
226
- # callback
227
- export CTCallback, CTCallbacks, PrintCallback, StopCallback
228
- export get_priority_print_callbacks, get_priority_stop_callbacks
229
-
230
230
# description
231
231
export Description, add, getFullDescription, remove
232
232
@@ -248,10 +248,13 @@ export OptimalControlModel
248
248
export Model
249
249
export __OCPModel # redirection to Model to avoid confusion with other Model functions from other packages. Due to @def macro
250
250
export variable!, time!, constraint!, dynamics!, objective!, state!, control!, remove_constraint!, constraint
251
- export is_autonomous, is_fixed, is_time_independent, is_time_dependent, is_min, is_max, is_variable_dependent, is_variable_independent
251
+ export is_autonomous, is_fixed, is_time_independent, is_time_dependent, is_min, is_max
252
+ export is_variable_dependent, is_variable_independent
252
253
export nlp_constraints!, constraints_labels
253
254
export has_free_final_time, has_free_initial_time, has_lagrange_cost, has_mayer_cost
254
- 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
255
+ export dim_control_constraints, dim_state_constraints, dim_mixed_constraints, dim_path_constraints
256
+ export dim_boundary_constraints, dim_variable_constraints, dim_control_range
257
+ export dim_state_range, dim_variable_range
255
258
export model_expression, initial_time, initial_time_name, final_time, final_time_name, time_name
256
259
export control_dimension, control_components_names, control_name
257
260
export state_dimension, state_components_names, state_name
@@ -260,6 +263,8 @@ export lagrange, mayer, criterion, dynamics
260
263
261
264
# solution
262
265
export OptimalControlSolution
266
+ export time_grid, control, state, variable, costate, objective
267
+ export iterations, stopping, message, success, infos
263
268
264
269
# initialization
265
270
export OptimalControlInit
0 commit comments