pyepo.model.grb.shortestpath

Shortest path problem

Attributes

_HAS_GUROBI

cost

Classes

shortestPathModel

This class is an optimization model for the 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 an optimization model for the 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 = []
_getModel()

A method to build Gurobi model

Returns:

optimization model and variables

Return type:

tuple

pyepo.model.grb.shortestpath.cost