Skip to content

Prepare Utils module move to CTBase.jl#320

Merged
ocots merged 3 commits into
mainfrom
move-utils-to-ctbase-v2
Jun 12, 2026
Merged

Prepare Utils module move to CTBase.jl#320
ocots merged 3 commits into
mainfrom
move-utils-to-ctbase-v2

Conversation

@ocots

@ocots ocots commented Jun 11, 2026

Copy link
Copy Markdown
Member

This PR prepares for the migration of the Utils module from CTModels.jl to CTBase.jl.

Changes

  • Added a TODO comment in the Utils module indicating the planned move (issue Move Utils module to CTBase.jl #319)
  • This is a placeholder commit to establish the branch for the actual migration

Rationale

The Utils module contains general-purpose utility functions (interpolation, matrix operations, function transformations) that are not specific to optimal control problems. These utilities are better placed in CTBase.jl as they can be reused across the entire control-toolbox ecosystem.

Next Steps

The actual migration will involve:

  1. Removing the Utils module from CTModels.jl
  2. Adding the Utils module to CTBase.jl (see CTBase.jl #445)
  3. Moving tests from CTModels.jl to CTBase.jl
  4. Updating imports and references in CTModels.jl
  5. Updating documentation

Related Issues

- Update all imports from CTModels.Utils to CTBase.Core and CTBase.Interpolation
- Remove Utils module from CTModels.jl source and documentation
- Update Project.toml to require CTBase v0.19
- Fix test_defaults.jl to use CTBase.Core.__matrix_dimension_storage
- Update test/README.md to remove Utils directory reference
- Update BREAKING.md and CHANGELOG.md with CTBase references
- Clean up API reference documentation
@ocots

ocots commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

Migration complète du module Utils vers CTBase terminée avec succès.

Changements effectués:

  • ✅ Tous les imports mis à jour: CTBase.Core et CTBase.Interpolation
  • ✅ Module Utils supprimé du code source et de la documentation
  • ✅ Project.toml mis à jour pour CTBase v0.19
  • ✅ Tests corrigés (test_defaults.jl, test/README.md)
  • ✅ Documentation mise à jour (BREAKING.md, CHANGELOG.md, api_reference.jl)
  • ✅ Tests passent: 3521/3521

Architecture CTBase:

  • CTBase.Core: matrix2vec, to_out_of_place, @ensure
  • CTBase.Interpolation: ctinterpolate, ctinterpolate_constant

La branche move-utils-to-ctbase-v2 est prête pour review.

@ocots ocots merged commit e8b1d10 into main Jun 12, 2026
4 checks passed
@ocots ocots deleted the move-utils-to-ctbase-v2 branch June 12, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant