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

Added example using JAX and the scipy interface. #119

Merged
merged 3 commits into from
Jul 18, 2021

Conversation

jhelgert
Copy link
Contributor

As we all know, calculating derivatives by hand can be quite error-prone. During the last months, I often used the JAX library to evaluate gradients and (dense) jacobians via AD (algorithmic differentiation), so I thought it might be an interesting example.

@moorepants
Copy link
Collaborator

This is nice use of JAX. I think the example would get more visibility if added to the documentation. Would you be willing to move it there? You'll probably have to add jax as a dependency in the CI for the docs to build.

@jhelgert
Copy link
Contributor Author

@moorepants Done. Is it really necessary to add jax as a dependency for docs? I am quite new to sphinx and I don't really see why it might be needed.

@moorepants
Copy link
Collaborator

Is it really necessary to add jax as a dependency for docs?

It may not be, if the examples aren't run or doc-tested.

Problem Interface
=================
Algorithmic Differentation
--------------------
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/home/moorepants/src/cyipopt/docs/source/tutorial.rst:30: WARNING: Title underline too short.

Algorithmic Differentation
--------------------

@moorepants
Copy link
Collaborator

Thanks!

I guess our CI is no longer running...

@moorepants moorepants merged commit 23b55f2 into mechmotum:master Jul 18, 2021
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

Successfully merging this pull request may close these issues.

2 participants