pyepo.model.omo.shortestpath

Shortest path problem

Attributes

_HAS_PYOMO

cost

Classes

shortestPathModel

This class is an optimization model for the shortest path problem

Module Contents

pyepo.model.omo.shortestpath._HAS_PYOMO = True
class pyepo.model.omo.shortestpath.shortestPathModel(grid, solver='glpk')

Bases: pyepo.model.omo.omomodel.optOmoModel

This class is an optimization model for the shortest path problem

_model

Pyomo model

Type:

Pyomo model

solver

optimization solver in the background

Type:

str

grid

size of grid network

Type:

tuple of int

arcs

list of arcs

Type:

list

grid
arcs = []
_getModel()

A method to build Pyomo model

pyepo.model.omo.shortestpath.cost