API reference¶
This reference is generated from the docstrings of the package. A name is
part of the public interface when it is listed in the __all__ of
meanflux or of one of its subpackages.
| Subpackage | Contents |
|---|---|
meanflux.core |
State and time grids, supply network, working precision |
meanflux.numerics |
Batched tridiagonal solver |
meanflux
¶
MeanFlux public API.
MeanFlux solves mean field games of multi-echelon supply chains and reports shortage risk as differentiable functionals of the equilibrium.
The main mathematical objects are re-exported here, so that
from meanflux import Grid works. Functions stay in their subpackage, for
example meanflux.numerics.solve_tridiagonal, in the way PyTorch keeps
torch.linalg.solve. No workflow function lives at the root. An algorithm
is run with solver.solve(problem).