pyepo.model.omo.shortestpath

Shortest path problem

Attributes

Classes

shortestPathModel

Pyomo-backed shortest path on a grid network.

Module Contents

class pyepo.model.omo.shortestpath.shortestPathModel(grid: tuple[int, int], solver: str = 'glpk')

Bases: pyepo.model.bases.shortestPathBase, pyepo.model.omo.omomodel.optOmoModel

Pyomo-backed shortest path on a grid network.

Variables:
  • _model (Pyomo model) – Pyomo model

  • solver (str) – optimization solver in the background

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

  • arcs (list) – List of arcs

pyepo.model.omo.shortestpath.cost