pyepo.model.mpax.shortestpath

Shortest path problem

Attributes

jnp

Classes

shortestPathModel

MPAX-backed (JAX LP) shortest path on a grid network.

Module Contents

pyepo.model.mpax.shortestpath.jnp = None
class pyepo.model.mpax.shortestpath.shortestPathModel(grid: tuple[int, int], *args, **kwargs)

Bases: pyepo.model.bases.shortestPathBase, pyepo.model.mpax.mpaxmodel.optMpaxModel

MPAX-backed (JAX LP) shortest path on a grid network.

Variables:
  • grid (tuple of int) – Size of grid network

  • arcs (list) – List of arcs

use_sparse_matrix = True