Skip to content

Control#286

Merged
ocots merged 4 commits intomainfrom
control
Mar 16, 2026
Merged

Control#286
ocots merged 4 commits intomainfrom
control

Conversation

@ocots
Copy link
Copy Markdown
Member

@ocots ocots commented Mar 16, 2026

No description provided.

ocots added 2 commits March 16, 2026 17:46
- Add ctinterpolate_constant with right-continuous steppost behavior
- Add interpolation parameter to interpolation helpers (:linear, :constant)
- Apply constant interpolation to controls and control box duals in build_solution
- Replace ctinterpolate with manual implementation for performance
- Set default seriestype=:steppost for control plotting
- Add comprehensive tests for constant interpolation
- Update version to 0.9.8-beta

Performance improvements:
- Manual ctinterpolate is ~20x-8600x faster to create
- Manual ctinterpolate_constant gives exact right-continuous behavior
- No allocations for interpolation object creation
- 10-21% faster for multiple evaluations

All tests pass (92/92 total)
- Add comprehensive changelog entry for piecewise constant interpolation
- Document new ctinterpolate_constant function and steppost behavior
- Detail performance improvements (~20x-8600x faster creation)
- Add API examples and migration notes
- Update BREAKING.md to clarify no breaking changes
- Fix markdown formatting issues
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 16, 2026

Breakage test results
Date: 2026-03-16 18:08:38

Name Latest Stable
CTDirect compat: v0.9.8-beta compat: v0.9.8-beta
CTFlows compat: v0.9.8-beta compat: v0.9.8-beta
OptimalControl compat: v0.9.8-beta compat: v0.9.8-beta

ocots added 2 commits March 16, 2026 18:19
…rol interpolation

- Add end-to-end tests verifying build_solution applies constant interpolation to controls
- Test scalar (1D) and vector (2D) control constant interpolation behavior
- Verify right-continuous steppost behavior: constant on [t_i, t_{i+1})
- Confirm NOT linear interpolation in integration tests
- Fix control data format in tests (reshape to matrix for proper interpolation)
- All 3456 tests pass including 75 interpolation tests
- Ready for production with complete test coverage
@ocots ocots merged commit db45ed3 into main Mar 16, 2026
12 checks passed
@ocots ocots deleted the control branch March 16, 2026 17:36
@ocots ocots mentioned this pull request Apr 1, 2026
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