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

Use sensitivities #15

Open
brosaplanella opened this issue Aug 25, 2022 · 2 comments
Open

Use sensitivities #15

brosaplanella opened this issue Aug 25, 2022 · 2 comments
Labels
enhancement New feature or request information-needed Add more information to the issue

Comments

@brosaplanella
Copy link
Collaborator

Use sensitivities to calculate the Jacobian of the cost function in order to speed up the fitting. See this notebook for an example.

@PipGrylls
Copy link
Collaborator

In the notebook this is passed as a parameter to a pybamm solver:

`solver = pybamm.CasadiSolver(mode="safe", atol=1e-6, rtol=1e-3)

solution = solver.solve(
model, t_eval,
inputs={"Current function [A]": 0.15652},
calculate_sensitivities=True
)`

Can you identify where a similar action is taken in our cost funtions and/or example scripts/notebooks?

@brosaplanella
Copy link
Collaborator Author

This would require the cost functions returning the Jacobian (which would depend on the sensitivity of the forward model), and feed that to the optimiser (e.g. jac argument in SciPy minimize).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request information-needed Add more information to the issue
Projects
None yet
Development

No branches or pull requests

2 participants