Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warn_initialize_determined = false not working with remake #3513

Open
TorkelE opened this issue Mar 30, 2025 · 0 comments · May be fixed by #3516
Open

warn_initialize_determined = false not working with remake #3513

TorkelE opened this issue Mar 30, 2025 · 0 comments · May be fixed by #3516
Assignees
Labels
bug Something isn't working

Comments

@TorkelE
Copy link
Member

TorkelE commented Mar 30, 2025

this

using Catalyst
rn = @reaction_network begin
    (k1,k2), 2X1 <--> X2
    (k3,k4), X1 + X2 <--> X3
end
@unpack X1, X2, X3 = rn
u0 = [X1 => 1.0, X2 => 1.0, X3 => 1.0]
ps = [:k1 => 0.1, :k2 => 0.2, :k3 => 0.3, :k4 => 0.4]
prob_old = ODEProblem(rn, u0, 1.0, ps; remove_conserved = true)
prob_new = remake(prob_old; p = [ => [10.0]], warn_initialize_determined = false)

gives a

┌ Warning: Initialization system is overdetermined. 1 equations for 0 unknowns. Initialization will default to using least squares. `SCCNonlinearProblem` can only be used for initialization of fully determined systems and hence will not be used here. To suppress this warning pass warn_initialize_determined = false. To make this warning into an error, pass fully_determined = true
└ @ ModelingToolkit C:\Users\Torkel\.julia\packages\ModelingToolkit\r9J1w\src\systems\diffeqs\abstractodesystem.jl:1446
@TorkelE TorkelE added the bug Something isn't working label Mar 30, 2025
@vyudu vyudu linked a pull request Mar 31, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants