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

Parameter expressions as argument of previous()? #3074

Closed
casella opened this issue Dec 10, 2021 · 1 comment · Fixed by #3214
Closed

Parameter expressions as argument of previous()? #3074

casella opened this issue Dec 10, 2021 · 1 comment · Fixed by #3214
Assignees
Labels
clarification Specification of feature is unclear, but not incorrect clocked Clocked parts of Modelica; synchronous and state-machines

Comments

@casella
Copy link
Collaborator

casella commented Dec 10, 2021

In Section 16.4 I read the following statements:

A variable to which previous has been applied is called a clocked state variable.

Operator 16.6 previous

previous(u)

The input argument u is a component expression (definition 16.6) or a parameter expression.

I'm not sure I understand why u can be a parameter expression. How can a parameter expression be a clocked state variable, since it is by definition constant?

@HansOlsson
Copy link
Collaborator

That formulation is odd, but I don't see any major reason to change it.
What should be stated is that there are two possibilities for the argument with different consequences:

  • A component expression, that variable is then a clocked state variable
  • A parameter expression.

If you close at least one eye and squint you can see that it is just clarifying the existing text.

@HansOlsson HansOlsson added the clarification Specification of feature is unclear, but not incorrect label Jan 31, 2022
@HansOlsson HansOlsson self-assigned this Apr 26, 2022
@HansOlsson HansOlsson added the clocked Clocked parts of Modelica; synchronous and state-machines label Jul 1, 2022
HansOlsson added a commit to HansOlsson/ModelicaSpecification that referenced this issue Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Specification of feature is unclear, but not incorrect clocked Clocked parts of Modelica; synchronous and state-machines
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants