Skip to content
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

Algorithm in state-machines? #2817

Closed
HansOlsson opened this issue Jan 21, 2021 · 1 comment · Fixed by #2875
Closed

Algorithm in state-machines? #2817

HansOlsson opened this issue Jan 21, 2021 · 1 comment · Fixed by #2875
Labels
clocked Clocked parts of Modelica; synchronous and state-machines

Comments

@HansOlsson
Copy link
Collaborator

https://specification.modelica.org/master/state-machines.html#transitions says:

Any Modelica block instance without continuous-time equations or algorithms can potentially be a state of a state machine.

Does this mean "(continuous-time equations) or (algorithms)" or "continuous-time (equations or algorithms)"?
For some reason Dymola 2021x (and earlier) seems to have selected the first interpretation (but only gives a warning), but to me the second one would be slightly more natural.

Found when looking at #2816 and if we allow algorithms in state-machines we have to be more careful about how we reset it.

@HansOlsson HansOlsson added the clocked Clocked parts of Modelica; synchronous and state-machines label Jan 21, 2021
HansOlsson added a commit to HansOlsson/ModelicaSpecification that referenced this issue Feb 26, 2021
Closes modelica#2817
The initialization part anyway needs further clarification.
@eshmoylova
Copy link
Member

Since clocked algorithms are allowed in general, I agree that it would make sense to allow them to be included here as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clocked Clocked parts of Modelica; synchronous and state-machines
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants