Comments (4)
@saumil-sh
Thanks! I have fixed this, now, for @ODEmodel
macro it only allow variable names which are valid Julia identifiers.
Let me know if you spot anything else!
from structuralidentifiability.jl.
@saumil-sh
Thanks for reporting!
I will look into this over the weekend.
from structuralidentifiability.jl.
@saumil-sh
Thanks again for reporting! I have fixed the issue (for the MTK input) in the current GitHub version (can be installed by Pkg.add("https://github.com/SciML/StructuralIdentifiability.jl"). Could you take a look ?
from structuralidentifiability.jl.
Hey,
Thanks for letting me know :)
Just a minor correction for installing from a URL the syntax must be Pkg.add(url="https://github.com/SciML/StructuralIdentifiability.jl")
.
I can run the second example provided in the first post using the MTK.
Just to update the issue, I ran the first example after defining x
just to see what happens.
julia> @variables t x(t)[1:2]
2-element Vector{Any}:
t
(x(t))[1:2]
julia> ode_1 = @ODEmodel(
x[1]'(t) = -k1 * x[2],
x[2]'(t) = -k2 * x[1],
y[1](t) = x[1](t),
y[2](t) = x[2](t)
)
[ Info: Summary of the model:
[ Info: State variables: x[1], x[2]
[ Info: Parameters: y, k1, k2, x
[ Info: Inputs:
[ Info: Outputs: y[1], y[2]
ERROR: CanonicalIndexError: setindex! not defined for Symbolics.Arr{Num, 1}
Stacktrace:
[1] ⋮ internal @ Base
[2] setindex!
@ Base ./abstractarray.jl:1396
Use `err` to retrieve the full stack trace.
julia> err
1-element ExceptionStack:
CanonicalIndexError: setindex! not defined for Symbolics.Arr{Num, 1}
Stacktrace:
[1] error_if_canonical_setindex(#unused#::IndexCartesian, A::Symbolics.Arr{Num, 1}, #unused#::Int64)
@ Base ./abstractarray.jl:1407
[2] setindex!(A::Symbolics.Arr{Num, 1}, v::Nemo.QQMPolyRingElem, I::Int64)
@ Base ./abstractarray.jl:1396
[3] top-level scope
@ REPL[11]:1
I hope this helps with the first example.
Thanks for the quick fix ^^
from structuralidentifiability.jl.
Related Issues (20)
- Floating point numbers in @ODEmodel HOT 2
- Initial conditions HOT 2
- Function exp is not supported HOT 4
- Global identifiability does not work properly HOT 3
- ode for input HOT 7
- Rationalizing input model
- expression which is not an ODE HOT 1
- SymbolicUtils v1 upgrade HOT 2
- Write how to define models with MTK HOT 3
- Working directly on expressions for local identifiability
- Structural identifiability analysis fails for composed MTK model HOT 12
- Fixed initial conditions: local identifiability
- Fixed initial conditions: global identifiability
- Spelling error in documentation HOT 1
- Algebraic function in the ODE for structural analysis? HOT 1
- Structural Analysis for algebraic difference equations (DiscreteSystem) HOT 13
- Advice on getting global identifiabiltiy to work for a relatively small (?) system HOT 2
- Error when attempting identifiability analysis on system with parameter in exponent. HOT 2
- ModelingToolkit Workflow only returns Parameter Identifiability HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from structuralidentifiability.jl.