pyepo.model.omo.shortestpath

Shortest path problem

Module Contents

Classes

shortestPathModel

This class is optimization model for shortest path problem

Attributes

cost

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

Bases: pyepo.model.omo.omomodel.optOmoModel

This class is optimization model for 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

_getArcs()

A method to get list of arcs for grid network

Returns:

arcs

Return type:

list

_getModel()

A method to build pyomo model

pyepo.model.omo.shortestpath.cost