Comments (7)
I would love to see this as the same one used for the differential operators DSL (which I think was your plan)
Yup, that's the plan. We should have a bunch of domain types and an untyped domain field for this. Our variable constructor probably needs to start using some kwargs.
from modelingtoolkit.jl.
In order of priority after continuous (unbounded) variables: I do not need any of the integer domains yet, and don't think we need compact subsets of R yet. But having a discrete domain would be nice within a few months (i.e. I have a system of differential equations with a discrete state i = :L
or i = :H
in the math where i have a Markov chain between L and H and then another continuous variable x. So the notation in my math is v_i(x)
, etc.)
from modelingtoolkit.jl.
I don't really understand enums well in julia, so it could be that it is better to use a finite domain of symbols, Fruits = (:apple1, :apple2, :apple3) and FiniteDomain(Fruits)
That's pretty much what an enum is BTW.
from modelingtoolkit.jl.
Perfect. Then I am happy with enums.
In fact, they may have the advantage that they have the default ordinal position attached to the names? If so it makes ordering the states of markov chains consistent without any other magic. i.e. @enum InnovationType H=1, L=2
then I can easily jump between markov chain symbols and the ordinal position within vectors.
from modelingtoolkit.jl.
In fact, they may have the advantage that they have the default ordinal position attached to the names? If so it makes ordering the states of markov chains consistent without any other magic. i.e. @enum InnovationType H=1, L=2 then I can easily jump between markov chain symbols and the ordinal position within vectors.
Indeed.
from modelingtoolkit.jl.
Domains have been added to the variables, but no domains have been created.
from modelingtoolkit.jl.
Basic domains have been added.
from modelingtoolkit.jl.
Related Issues (20)
- Load error with @mtkbuild HOT 7
- Solve step fails with array variables
- Support `remake` to update individual variables/species in new MTK version HOT 7
- Erroe when plotting observed variable(s) HOT 3
- ModelingToolkit does not save array as static arrays (for initial conditions and parameter values)
- Model linearization fails when no parameter is used HOT 4
- Wrapping `connector` subcomponents into a `@connector` generates undsired equations
- Internation functions for conversion between various forms of representing states/parameters etc. (e.g. symbolics or indexes) HOT 5
- `initializesystem` needs to handle independent variable HOT 2
- UndefVarError: `issymbollike` not defined HOT 2
- Use SPEX for Bareiss
- ERROR: LinearAlgebra.SingularException(10) with MTK v8.74+ HOT 4
- @mtkmodel gives "LoadError: Could not parse 0 of component..." HOT 2
- Move `@variables` and `@parameters` defaults to the `ODESystem` `defaults` keyword to support defaults that depend on components. Or add a @defaults block to support out of order defaults manually. HOT 1
- `structural_simplify` does not seem to include `dae_index_lowering` anymore HOT 2
- Cannot access observed variables in NonlinearSolution HOT 1
- Events for @mtkmodel components HOT 5
- "Ignore" option for connectors
- Support for simulation of hybrid systems HOT 2
- Inconsistency when passing parameters to sub components
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 modelingtoolkit.jl.