-
-
Notifications
You must be signed in to change notification settings - Fork 73
Run CheckInit
after Initialization and Fix Core1 tests
#1193
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
Conversation
…into dg/core1_init
…into dg/core1_init
literal_getproperty(sol, Val{:u})
CheckInit
after Initialization and Fix Core1 tests
I think we need to provide I have marked a copy of the Further, there is a bug in the Rodas methods it seems like. The case with the fully determined initialization when solved with julia> new_sol = solve(prob_correctu0, Rodas5P(); initializealg = NoInit(), sensealg, abstol = 1e-6, reltol = 1e-3)
retcode: Success
Interpolation: specialized 4rd order "free" stiffness-aware interpolation
t: 10-element Vector{Float64}:
0.0
1.0e-6
1.1e-5
0.00011099999999999999
0.0011109999999999998
0.011110999999999996
0.11111099999999996
1.1111109999999995
11.111110999999994
100.0
u: 10-element Vector{Vector{Float64}}:
[2.0, 0.0, 0.0, 1.0, 0.0]
[2.0, 0.0, 0.0, 1.0, 0.0]
[2.0, 0.0, 0.0, 1.0, 0.0]
[2.0, 0.0, 0.0, 1.0, 0.0]
[2.0, 0.0, 0.0, 1.0, 0.0]
[2.0, 0.0, 0.0, 1.0, 0.0]
[2.0, 0.0, 0.0, 1.0, 0.0]
[2.0, 0.0, 0.0, 1.0, 0.0]
[2.0, 0.0, 0.0, 1.0, 0.0]
[2.0, 0.0, 0.0, 1.0, 0.0] |
Not true, if there's a guess that should be used, unless there's still a bug there @AayushSabharwal |
No, that's why I was saying you shouldn't use NoInit here. |
I just checked. Guess propagation is working fine on my end: using OrdinaryDiffEq, ModelingToolkit
using ModelingToolkit: t_nounits as t, D_nounits as D
@parameters σ ρ β A[1:3]
@variables x(t) y(t) z(t) w(t) w2(t)
eqs = [D(D(x)) ~ σ * (y - x),
D(y) ~ x * (ρ - z) - y,
D(z) ~ x * y - β * z,
w ~ x + y + z + 2 * β,
0 ~ x^2 + y^2 - w2^2
]
@mtkbuild sys = ODESystem(eqs, t)
u0_incorrect = [D(x) => 2.0,
x => 1.0,
y => 0.0,
z => 0.0]
p = [σ => 28.0,
ρ => 10.0,
β => 8 / 3]
tspan = (0.0, 100.0)
u0_correct = [D(x) => 2.0,
x => 1.0,
y => 0.0,
z => 0.0,]
prob_correctu0 = ODEProblem(sys, u0_correct, tspan, p, jac = true, guesses = [w2 => -1.0])
mtkparams_correctu0 = SciMLSensitivity.parameter_values(prob_correctu0)
test_sol = solve(prob_correctu0, Rodas5P(), initializealg = CheckInit(), abstol = 1e-6, reltol = 1e-3) |
|
Core 8 also has a new failure with LoadError: Cyclic guesses detected in the system. Symbolic values were found for the following variables/parameters in the map:
ampermeter₊n₊v(t) => capacitor2₊v(t) + input_signal₊output₊u(t)
In order to resolve this, please provide additional numeric guesses so that the chain can be resolved to assign numeric values to each variable. Should we add a guess here? |
Co-authored-by: Aayush Sabharwal <[email protected]>
🎉 |
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
This dispatch does need to be removed, but check CI for failures.
Add any other context about the problem here.