pyepo.model.grb.shortestpath

Shortest path problem

Module Contents

Classes

shortestPathModel

This class is optimization model for shortest path problem

Attributes

cost

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

_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