Giter Club home page Giter Club logo

Comments (14)

ChrisRackauckas avatar ChrisRackauckas commented on July 23, 2024

Yup thanks for the writeup. So it looks like a two variable + parameter pairing is what's needed. DependentVariable for states and Variable for the control variables would work, and we can just add the aliasing between the names DependentVariable and StateVariable along with an alias of ControlVariable and Variable.

from modelingtoolkit.jl.

ChrisRackauckas avatar ChrisRackauckas commented on July 23, 2024

Actually we'd want to keep Variable separate for intermediate calculations, so we should add ControlVariable and that would make it easy to automatically detect that it's an optimal control problem.

from modelingtoolkit.jl.

huckl3b3rry87 avatar huckl3b3rry87 commented on July 23, 2024

Yeah, that sounds good. Also, ultimately it is important for me to convert whatever the user gives into expressions so that I can use JuMP, is that out of scope for this package?

from modelingtoolkit.jl.

ChrisRackauckas avatar ChrisRackauckas commented on July 23, 2024

That's in scope.

from modelingtoolkit.jl.

huckl3b3rry87 avatar huckl3b3rry87 commented on July 23, 2024

@ChrisRackauckas great!

from modelingtoolkit.jl.

huckl3b3rry87 avatar huckl3b3rry87 commented on July 23, 2024

Also, it would be good to extend your @Var macro to define new names for the state and control variables such as:

@StateVar X Y PSI

and

@ControlVar U AX

I did this before using a function

from modelingtoolkit.jl.

ChrisRackauckas avatar ChrisRackauckas commented on July 23, 2024

Is @DVar fine? It would make interopability easier with DiffEq to not add another name if it's unnecessary.

from modelingtoolkit.jl.

huckl3b3rry87 avatar huckl3b3rry87 commented on July 23, 2024

There should be a difference between state and control variables. Are you suggesting using @Dvar for the states and controls?

from modelingtoolkit.jl.

ChrisRackauckas avatar ChrisRackauckas commented on July 23, 2024

No, just states, since those are just the standard diffeq variables?

from modelingtoolkit.jl.

huckl3b3rry87 avatar huckl3b3rry87 commented on July 23, 2024

yeah, that is fine! What does @Dvar stand for? It sounds like design varaible

from modelingtoolkit.jl.

ChrisRackauckas avatar ChrisRackauckas commented on July 23, 2024

Dependent variable.

from modelingtoolkit.jl.

huckl3b3rry87 avatar huckl3b3rry87 commented on July 23, 2024

ah, that works!

from modelingtoolkit.jl.

huckl3b3rry87 avatar huckl3b3rry87 commented on July 23, 2024

Could @Var be used for the controls?

from modelingtoolkit.jl.

ChrisRackauckas avatar ChrisRackauckas commented on July 23, 2024

We'll want that for intermediate calculations.

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.