pyepo.model.grb.shortestpath
Shortest path problem
Attributes
Classes
This class is optimization model for shortest path problem |
Module Contents
- pyepo.model.grb.shortestpath._HAS_GUROBI = True
- class pyepo.model.grb.shortestpath.shortestPathModel(grid)
Bases:
pyepo.model.grb.grbmodel.optGrbModel
This class is optimization model for shortest path problem
- _model
Gurobi model
- Type:
GurobiPy model
- 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 Gurobi model
- Returns:
optimization model and variables
- Return type:
tuple
- pyepo.model.grb.shortestpath.cost