File size: 458 Bytes
c964813
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
# Optimisation backend

Python run in the browser by Pyodide (see `frontends/react/src/pyodide.worker.ts`).

- `src/logic.py`: parsing the function, its derivatives, the optimisers and runs
- `src/manager.py`: the `Manager` methods the UI calls
- `src/algorithms.json`: each optimiser's settings, shared with the UI
- `contract/`: example calls, checked by `tests/test_contract.py` and the frontend's `contract.check.ts`

Run the tests with `uv run pytest`.