GithubHelp home page GithubHelp logo

Comments (3)

guescrib avatar guescrib commented on May 31, 2024

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.

bluescarni avatar bluescarni commented on May 31, 2024

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.

bluescarni avatar bluescarni commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.