Skip to content

Control#288

Merged
ocots merged 2 commits intomainfrom
control
Mar 17, 2026
Merged

Control#288
ocots merged 2 commits intomainfrom
control

Conversation

@ocots
Copy link
Copy Markdown
Member

@ocots ocots commented Mar 17, 2026

No description provided.

ocots added 2 commits March 17, 2026 11:00
…ialization support

- Add control_interpolation field to ControlModelSolution type
- Add control_interpolation accessor for Solution objects
- Add control_interpolation keyword argument to build_solution signatures
- Add __control_interpolation() default method in defaults.jl
- Update serialization to persist control_interpolation field
- Update plot to use dynamic seriestype based on interpolation type
- Add comprehensive tests for both :constant and :linear interpolation
- Add JSON/JLD2 serialization tests with backward compatibility
- Ensure consistent default method usage across all components

Features:
- Piecewise constant interpolation (:constant) for direct methods
- Piecewise linear interpolation (:linear) for indirect methods
- Automatic plotting adaptation (steppost vs path)
- Full round-trip serialization support
- Backward compatibility for existing files

Tests: 1751 tests passing with full coverage
- Add comprehensive changelog entry for flexible control interpolation
- Document new API features and enhancements
- Update breaking changes with non-breaking feature documentation
- Include migration notes and examples
- Maintain backward compatibility documentation
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.04%. Comparing base (e702c9f) to head (b3673db).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #288      +/-   ##
==========================================
+ Coverage   89.01%   89.04%   +0.03%     
==========================================
  Files          41       41              
  Lines        2157     2163       +6     
==========================================
+ Hits         1920     1926       +6     
  Misses        237      237              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 17, 2026

Breakage test results
Date: 2026-03-17 10:50:07

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.9-beta compat: v0.9.9-beta

@ocots ocots merged commit 110a0ad into main Mar 17, 2026
27 checks passed
@ocots ocots deleted the control branch March 17, 2026 10:32
@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