-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Hybrid System features #395
base: master
Are you sure you want to change the base?
Conversation
My main concern is how you link the reset map and the guard of a transition in case you have several transitions with the same source mode and same target mode @constraint(model, guard(mode == 0, mode == 1) => {T <= T_r + δ})
@constraint(model, reset_map(mode == 0, mode == 1) => {Δx == ...}) Maybe we could do something like t = Transition(model, mode, 0, 1)
@constraint(t, T <= T_r + δ)
@constraint(t, Δx == ...) This would allow to use JuMP macros to define the guard and reset maps and we just have to define add_transition!(model, mode, 0, 1) do t
@constraint(t, T <= T_r + δ)
@constraint(t, Δx == ...)
end where |
I like this transition thing pretty much, let's go with that. |
… need to able to set algo
https://dionysos-dev.github.io/Dionysos.jl/previews/PR395/