Comments (14)
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.
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.
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.
That's in scope.
from modelingtoolkit.jl.
@ChrisRackauckas great!
from modelingtoolkit.jl.
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.
Is @DVar
fine? It would make interopability easier with DiffEq to not add another name if it's unnecessary.
from modelingtoolkit.jl.
There should be a difference between state and control variables. Are you suggesting using @Dvar
for the states and controls?
from modelingtoolkit.jl.
No, just states, since those are just the standard diffeq variables?
from modelingtoolkit.jl.
yeah, that is fine! What does @Dvar
stand for? It sounds like design varaible
from modelingtoolkit.jl.
Dependent variable.
from modelingtoolkit.jl.
ah, that works!
from modelingtoolkit.jl.
Could @Var
be used for the controls?
from modelingtoolkit.jl.
We'll want that for intermediate calculations.
from modelingtoolkit.jl.
Related Issues (20)
- Unknowns of full sys used instead of for discrete partition
- Updating parameter/variable values does not update values of dependant defaults HOT 36
- modelingtoolkitize fails on ODEProblem where LHS is R code HOT 4
- Pass state and parameter names etc. to modelingtoolkitize so the equations are easier to compare HOT 2
- Error when plotting multiple (not single) observable in Symbol form
- Events not working with automatic solver selection HOT 4
- Precise execution order of multiple discrete affect
- `split=false` required to simulate with uncertain parameters HOT 2
- Bad latex display for equations with vector variables: HOT 1
- Use `Terminterface.iscall` isntead of `istree`
- SDE simulations broken HOT 3
- `MonteCarloMeasurements` for a `NonlinearProblem` HOT 2
- SDE simulation broken again HOT 1
- `remake` fails with `ERROR: ArgumentError: ... is neither an observed nor an unknown variable.` HOT 2
- v9.15.0: When multiple @extend, only the last one takes effect
- Linearization regression HOT 2
- Vector parameters don't work with `parameter_dependencies` HOT 1
- `getu` with vector observed fails
- New parameter type validation broke parameter splines HOT 2
- Unintuitive behavior for including metadata in @parameters/@variables begin end
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.