pyepo.model.copt.shortestpath

Shortest path problem

Module Contents

Classes

shortestPathModel

This class is optimization model for shortest path problem

Attributes

cost

class pyepo.model.copt.shortestpath.shortestPathModel(grid)

Bases: pyepo.model.copt.coptmodel.optCoptModel

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.copt.shortestpath.cost