pyepo.model.mpax.shortestpath

Shortest path problem

Attributes

Classes

shortestPathModel

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

Module Contents

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
pyepo.model.mpax.shortestpath.cost