-
Parameters in `ModelingToolkit` can be passed as `(name, value)` pairs or dictionaries. Example:
```julia
rn = @reaction_network begin
s, 0 -> A
d, A -> 0
end
dprob = DiscreteProblem…
-
**Question❓**
If I change the differentiation method in the optimization example in [Optimizing through an ODE solve and re-creating MTK Problems](https://docs.sciml.ai/ModelingToolkit/stable/exam…
-
Hi @martinkosch, hi @thomvet,
I am currently working on a framework using OPC UA to integrate soft-controllers and [ModelingToolkit.jl](https://github.com/SciML/ModelingToolkit.jl) for virtual comm…
-
With the new update to MTK v9 we can use the much more efficient method of defining data interpolations as parameter values.
How to do so can be seen here:
https://github.com/SciML/ModelingToolki…
-
The `@mtkmodel` macro appears to assume that all equations are scalars:
```
ERROR: MethodError: Cannot `convert` an object of type Vector{Equation} to an object of type Equation
...
@ ModelingT…
-
This model has a legitimate issue which is that the voltage (which has units of `V`) is being assigned to a constant value. So let's start there:
```julia
using ModelingToolkit
using ExampleLibr…
-
```julia
julia> using Symbolics
julia> @variables pos[1:3]
1-element Vector{Symbolics.Arr{Num, 1}}:
pos[1:3]
julia> Symbolics.scalarize(pos/norm(pos))
3-element Vector{Num}:
pos[1] / sqr…
-
`simplify_fractions` changes ModelingToolkit parameters to variables in some very rare cases. This creates problems downstream when using `structural_simplify` (unbalanced reaction system). The stdout…
-
```julia
julia> using Symbolics, ModelingToolkit
julia> using Symbolics: scalarize, unwrap
julia> @variables t a[1:2](t) = [1,2];
julia> ModelingToolkit.getdefault(collect(ModelingToolkit.va…
-
https://docs.sciml.ai/MethodOfLines/dev/tutorials/heatss/ seems to be broken with the latest versions of the packages.
```julia
ERROR: ArgumentError: Equations (12), states (12), and initial condi…