Skip to content

CasADi: Fix aliasing of algebraic states to constants#219

Merged
pietropelizzari merged 1 commit into
masterfrom
issue-218
Mar 12, 2020
Merged

CasADi: Fix aliasing of algebraic states to constants#219
pietropelizzari merged 1 commit into
masterfrom
issue-218

Conversation

@jackvreeken
Copy link
Copy Markdown
Contributor

The aliasing of algebraic states to parameters already worked as
expected, but that for constants did not yet. This commit fixes the
latter such that aliasing behavior to constants is similar to that of
parameters.

Two tests have been added. Note that only ConstantAlias model failed
before this commit, and that the ParameterAlias model is added for
completion and easy comparison (i.e. expected aliasing behavior is very
similar in both tests).

Closes #218

The aliasing of algebraic states to parameters already worked as
expected, but that for constants did not yet. This commit fixes the
latter such that aliasing behavior to constants is similar to that of
parameters.

Two tests have been added. Note that only ConstantAlias model failed
before this commit, and that the ParameterAlias model is added for
completion and easy comparison (i.e. expected aliasing behavior is very
similar in both tests).

Closes #218
@pietropelizzari pietropelizzari merged commit 1e327f1 into master Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CasADi: a constant is allowed to be a canonical variable but it is not handled properly

2 participants