Skip to content

Conversation

@isaacsas
Copy link
Member

@isaacsas isaacsas commented Jan 29, 2026

@TorkelE this is a start on the system conversion updates. I kept pure SDE models with no constraints using noise_eqs, but added a kwarg that allows switching to using Brownians. Hybrid models or models with constraints use Brownians. There is also an explicit HybridProblem function if one wants to directly generate the JumpProblem associated with a hybrid model -- JumpProblem forces everything to be jumps for consistency with ODE and SDE problems (I need to update that for hybrid models without jumps). I also didn't update the nonlinear system code to use the hybrid system function, since that is a different model type.

This should be pretty backwards compatible in that I don't think any non-hybrid model tests need updating.

@isaacsas isaacsas changed the base branch from master to version_16_new January 29, 2026 16:24
@isaacsas isaacsas changed the title Unify System creation during conversion WIP: Unify System creation during conversion Jan 29, 2026
isaacsas and others added 4 commits January 29, 2026 12:28
Systems created by make_cle_sde with constraint equations use the
Brownian-based path which requires mtkcompile before creating an
SDEProblem. This fixes the test failure in ReactionSystem Structure tests.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Tests expecting ODE metadata to be preserved should use make_hybrid_model
instead of make_sck_jump, since make_sck_jump explicitly ignores ODE/SDE
metadata (only preserving VariableRateJump metadata).

Co-Authored-By: Claude Opus 4.5 <[email protected]>
The upstream ModelingToolkit.jl issue #4030 has been resolved in
ModelingToolkitBase v1.8.0. The discrete parameter event tests for
SDE and Jump simulations now pass, so @test_broken is changed to @test.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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