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

Algebraic initial values #5

Open
nickerso opened this issue Aug 14, 2014 · 4 comments
Open

Algebraic initial values #5

nickerso opened this issue Aug 14, 2014 · 4 comments

Comments

@nickerso
Copy link
Owner

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.

@nickerso
Copy link
Owner Author

nickerso commented Sep 2, 2014

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...

@jonc125
Copy link

jonc125 commented Sep 9, 2014

Fully solving this problem probably requires something like the partial evaluation available in PyCml!

@nickerso
Copy link
Owner Author

nickerso commented Sep 9, 2014

Thanks Jonathan. A direct link to the code would be helpful.

@jonc125
Copy link

jonc125 commented Sep 9, 2014

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.

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

No branches or pull requests

2 participants