Giter Club home page Giter Club logo

Comments (7)

ChrisRackauckas avatar ChrisRackauckas commented on May 16, 2024

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.

jlperla avatar jlperla commented on May 16, 2024

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.

ChrisRackauckas avatar ChrisRackauckas commented on May 16, 2024

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.

jlperla avatar jlperla commented on May 16, 2024

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.

ChrisRackauckas avatar ChrisRackauckas commented on May 16, 2024

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.

ChrisRackauckas avatar ChrisRackauckas commented on May 16, 2024

Domains have been added to the variables, but no domains have been created.

from modelingtoolkit.jl.

ChrisRackauckas avatar ChrisRackauckas commented on May 16, 2024

Basic domains have been added.

from modelingtoolkit.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.