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

Rationalizing input model #144

Open
pogudingleb opened this issue Jan 23, 2023 · 0 comments
Open

Rationalizing input model #144

pogudingleb opened this issue Jan 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@pogudingleb
Copy link
Collaborator

pogudingleb commented Jan 23, 2023

At the moment all the algorithms in the package require input models to have rational right-hand side (that is, the rhs must be a quotient of two polynomials). One way to lift this limitation is to transform the system into a rational or even polynomial one. It is know that this can be done by introducing new variables (detailed algorithm with implementation in Python).

However, there is an important subtlety. Consider an example:

x'(t) = a * e^x(t)
y(t) = x(t)

The standard idea would be to introduce a new variable z(t) := e^x(t), this will recast the system into

x'(t) = a * z(t)
z'(t) = a * z(t)^2
y(t) = x(t)

In the latter model, parameter a will be non identifiable. However, if we add a different new variable w'(t) := a * e^x(t), the system will become

x'(t) = w(t)
w'(t) = w(t)^2
y(t) = x(t)

Although a has disappeared from the system, knowing x(0) and w(0) is sufficient to find it. Since these initial conditions are identifiable (and they are), a is in fact identifiable as well.

The difference between the two transformations above is that the former increases the number of degrees of freedom in the system and the latter does not. Because of this, the former yield an incorrect result. Therefore, the overall goal would be to have a procedure for transforming the model into a rational one while keeping the number of degrees of freedom the same. For practical examples of "careful" transformation, see sections A.2 and A.3 in this paper.

One plausible approach is:

  1. Implement any reasonable procedure for transforming a system into a rational one (e.g. adding all non rational terms as new variables until we are done). This may increase the number of degrees of freedom.
  2. Reduce back the number of degrees of freedom by applying an algorithm for finding scaling transformation from this paper.

This approach will work nicely for the example above. Implementing any of the two steps above separately would be a nice and welcome contribution on its own.

UPD: A simpler procedure can be established for parameters only #190

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant