Skip to content

Add Gauss-Legendre 2 stagewise scheme#582

Merged
PierreMartinon merged 15 commits intomainfrom
581-stagewise-gauss-legendre-2
Apr 17, 2026
Merged

Add Gauss-Legendre 2 stagewise scheme#582
PierreMartinon merged 15 commits intomainfrom
581-stagewise-gauss-legendre-2

Conversation

@ocots
Copy link
Copy Markdown
Member

@ocots ocots commented Apr 2, 2026

No description provided.

@ocots ocots linked an issue Apr 2, 2026 that may be closed by this pull request
@ocots ocots marked this pull request as draft April 2, 2026 15:30
@github-actions github-actions bot requested a review from PierreMartinon April 2, 2026 15:31
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

Breakage test results
Date: 2026-04-16 19:22:23

Name Latest Stable
OptimalControl compat: v1.0.8-beta compat: v1.0.8-beta

@ocots
Copy link
Copy Markdown
Member Author

ocots commented Apr 11, 2026

@ocots
Copy link
Copy Markdown
Member Author

ocots commented Apr 13, 2026

@vmerc I have created a v1.0.7-beta version. You simply have to update in your project, assuming the ct-registry is installed.

Comment thread test/runtests.jl Outdated
else
# CPU: run all scripts in subfolder ci/
include.(filter(contains(r".jl$"), readdir("./ci"; join=true)))
test_stagewise()
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est mal placé.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 16, 2026

Codecov Report

❌ Patch coverage is 97.93103% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.19%. Comparing base (857ba69) to head (f7a6f4f).

Files with missing lines Patch % Lines
src/ode/irk_stagewise.jl 97.87% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #582      +/-   ##
==========================================
+ Coverage   72.25%   75.19%   +2.94%     
==========================================
  Files          12       13       +1     
  Lines        1128     1274     +146     
==========================================
+ Hits          815      958     +143     
- Misses        313      316       +3     

☔ 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.

@PierreMartinon PierreMartinon marked this pull request as ready for review April 16, 2026 18:51
Copy link
Copy Markdown
Member

@PierreMartinon PierreMartinon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • stagewise is now the default for GL2 and GL3 scheme, with options gauss_legendre_2|3_constant_control for the stepwise controls
  • solution currently outputs the 'averaged' control at each step, not the individual stage controls (which could be retrieved with a bit of work in the high-level generic getter)
  • manual sparsity patterns are not available yet, but should not be too difficult to adapt from the stepwise control formulation

@PierreMartinon PierreMartinon merged commit 0e556b1 into main Apr 17, 2026
11 checks passed
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.

[Dev] Stagewise control for Gauss Legendre 2

3 participants