pyepo.model.omo.shortestpath
Shortest path problem
Attributes
Classes
This class is optimization model for 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 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
- grid
- arcs = []
- _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