Comments (3)
There's a very simple workaround to this issue: include the parameter as an additional state variable with no dynamics. Nonetheless we think it could make sense to include this feature in order to differentiate between parameters and system variables... Anyway if there is not a quick/easy fix probably the issue can be resolved without any additional action...
from heyoka.
Indeed derivatives wrt parameters are not currently available. I plan to add them eventually, but this requires some refactoring of the differentiation code, thus it will take some time.
The workaround you mention is correct. Another possible approach is to convert the expression to sympy (where parameters are transformed into variables called par[n]
), do the differentiation and then convert back to heyoka expressions (where par[n]
will be converted back into a param).
There is a tutorial about sympy interconversion here:
https://bluescarni.github.io/heyoka.py/notebooks/sympy_interop.html
from heyoka.
It is now possible to compute derivatives wrt parameters, see #196. This feature will be available in the upcoming 0.15 version.
Closing the report.
from heyoka.
Related Issues (13)
- it appears heyoka also has a implicit dependency on zlib but its not on the main page of pre-reqs[BUG] HOT 5
- cmake and VS2017 msvc 15.9.24 fail to build[BUG] HOT 9
- Partial derivative with respect to time not implemented in .diff utility [BUG] HOT 4
- Issue on page /index.html HOT 3
- [BUG] The test taylor_adaptive_batch fails on FreeBSD HOT 6
- [BUG] The test taylor_time fails on FreeBSD HOT 5
- [BUG] The test ensemble_propagate fails on FreeBSD HOT 7
- [BUG] 1.0.0: The test step_callback fails HOT 15
- [FEATURE] Consider submitting heyoka package to spack HOT 11
- [BUG] since v4.0.0: mem_cache_mutex' does not have a constant initializer HOT 3
- [BUG] 4.0.2 fails to complile: error: missing 'typename' prior to dependent type name 'i_data::step_f_e_t' HOT 3
- Does heyoka support external dynamic input of the ODE system? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heyoka.