Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
5c72266
Implementation of `ParametrisedReducedFunctional` as a subclass of `R…
divijghose Feb 4, 2026
69b4f42
Add `ParametrisedReducedFunctional` to `__init__`
divijghose Feb 4, 2026
afb45b7
Implementation of `ParametrisedReducedFunctional` as a subclass of th…
divijghose Feb 13, 2026
931655c
Implementation of `ParametrisedReducedFunctional` which calls `Reduce…
divijghose Feb 13, 2026
f290791
Update pyadjoint/reduced_functional.py
divijghose Feb 13, 2026
fb93ec4
Remove `derivative_components` as a kwarg to `ReducedFunctional`
divijghose Feb 13, 2026
af191c8
Updated `all_controls` to work if a list of parameters is passed. Eac…
divijghose Feb 13, 2026
bfd0d3e
Tests for Parametrised Reduced Functional:
divijghose Feb 16, 2026
ce926dc
Added a test to compare `ParametrisedReducedFunctional` against `Redu…
divijghose Feb 16, 2026
24ead4f
Change `parameter_update` to `update_parameters`
divijghose Feb 20, 2026
b983316
Update pyadjoint/reduced_functional.py
divijghose Feb 20, 2026
fab260b
Update pyadjoint/reduced_functional.py
divijghose Feb 20, 2026
11b384d
Updated `optimize_tape`
divijghose Feb 20, 2026
a426418
Updated `parameters` to return a list of `OverloadedType`
divijghose Feb 20, 2026
ff38909
Update pyadjoint/reduced_functional.py
divijghose Feb 20, 2026
e4dc322
Correct typo in test name
divijghose Feb 20, 2026
9dcfc64
Update `ParametrisedReducedFunctional` to raise an error if an empty …
divijghose Feb 20, 2026
7ac3220
Removed redundant check for parameters being instance of `Control`. T…
divijghose Feb 20, 2026
3d5a619
Changes to the test for Parametrised RF (`test_parametrised_rf`:
divijghose Feb 27, 2026
c960fec
Added a mathematical description to the parametrised reduced function…
divijghose Feb 27, 2026
6c07824
Update tests to include a minimzation problem with a quadratic polyno…
divijghose Mar 6, 2026
7147a6c
Import `ParametrisedReducedFunctional` in `optimization.py` and assig…
divijghose Mar 17, 2026
c9eddc6
Create a `ParametrisedReducedFunctionalNumpy` class for downstream use.
divijghose Mar 17, 2026
94d3548
Added a test to check for optimisation with a quadratic polynomial us…
divijghose Mar 23, 2026
6bdc6f7
Remove code duplication for `ParametrisedReducedFunctionalNumPy`. The…
divijghose Mar 23, 2026
876942e
Change in `derivative` (and associated tests) to not return a list of…
divijghose Mar 23, 2026
15f2b48
Changes to `hessian` for parametrised RF:
divijghose Mar 23, 2026
91fad19
Changes to `tlm` for paremetrised RF:
divijghose Mar 23, 2026
c46b096
Separate out the callbacks for `controls` and `parameters` in paramet…
divijghose Mar 23, 2026
a342f53
Stricter tolerances for the TAO solver test
divijghose Mar 30, 2026
3530074
Empty commit to test CI
divijghose Apr 21, 2026
1a2bbd2
Update tests/pyadjoint/test_parametrised_rf.py
divijghose Apr 28, 2026
c71c040
Update pyadjoint/reduced_functional.py
divijghose Apr 28, 2026
1060efd
Update pyadjoint/reduced_functional.py
divijghose Apr 28, 2026
cd76d26
Fix tests: updated new `complicated_expression` function in the tests
divijghose Apr 28, 2026
5e45110
Fixed a test to avoid controls and parameters appearing on multiple t…
divijghose Apr 28, 2026
4790026
Fix test to be conditionally skipped if petsc4py is not installed
divijghose Apr 28, 2026
c075344
Update pyadjoint/reduced_functional.py
divijghose Apr 28, 2026
f9c93a9
Update pyadjoint/reduced_functional.py
divijghose Apr 28, 2026
035b60e
Update pyadjoint/reduced_functional.py
divijghose Apr 28, 2026
2f228fb
Remove `ParametrisedReducedFunctional` from `__init__`
divijghose Apr 30, 2026
007a8ac
Remove `ParametrisedReducedFunctional` from `optimization`
divijghose Apr 30, 2026
4f3e0e9
Changes to `reduced_functional.py`:
divijghose Apr 30, 2026
9545ae5
Removed `ParametrisedReducedFunctional` from tests, and added a new t…
divijghose Apr 30, 2026
bef36b8
Remove `ParametrisedReducedFunctional` from imports
divijghose Apr 30, 2026
762332f
Fixed taylor test to show more information if something fails
divijghose Apr 30, 2026
6f74a9f
Fix changes to callbacks that break downstream tests
divijghose May 4, 2026
6e7e07a
Linting
divijghose Jun 23, 2026
737d117
Change signature of derivative callbacks and add deprecation warnings:
divijghose Jun 23, 2026
8bda201
Linting
divijghose Jun 23, 2026
27d97c9
Updates to derivative callback helpers, added helpers for other callb…
divijghose Jul 21, 2026
230032c
Replace attr functions with truth value of `self._parameters`
divijghose Jul 21, 2026
77c86ee
Allow empty parameter list in test
divijghose Jul 21, 2026
85fe1a2
Changed default derivative callbacks to accept parameters, and remove…
divijghose Jul 23, 2026
fd9831a
Moved the parameter branching upwards to avoid duplicate running of tape
divijghose Jul 23, 2026
2a9d4de
Changed callbacks to `None` in internal reduced functional and update…
divijghose Jul 23, 2026
2a73bed
Correct typo
divijghose Aug 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyadjoint/optimization/optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def minimize(rf, method='L-BFGS-B', scale=1.0, **kwargs):
rf.scale = scale
if isinstance(rf, ReducedFunctionalNumPy):
rf_np = rf
elif isinstance(rf, ReducedFunctional):
elif isinstance(rf, (ReducedFunctional)):
rf_np = ReducedFunctionalNumPy(rf)
else:
# Assume the user knows what he is doing - he might for example written
Expand Down
Loading