-
Notifications
You must be signed in to change notification settings - Fork 1
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
Algebraic initial values #5
Comments
6f60c37 starts to handle the case when a variable used in an initial_value attribute resolves to a simple numerical assignment. Still need to look into other cases... |
Fully solving this problem probably requires something like the partial evaluation available in PyCml! |
Thanks Jonathan. A direct link to the code would be helpful. |
The main driver code is at https://chaste.cs.ox.ac.uk/trac/browser/trunk/python/pycml/optimize.py#L241, although it makes use of a lot of other bits in that folder. |
Currently, the model compactor code will only handle initial_value attributes with variable name values if the named variable eventually resolves into a variable with a numerical initial_value attribute. It would be a fairly simple extension to correctly interpret initial value variables with simple equations (x = 2).
Ideally, we could interpret algebraic expressions to try and determine numerical initial_value's for differential equation variables. But we need to do this independently of CCGS.
The text was updated successfully, but these errors were encountered: