Skip to content

Instantly share code, notes, and snippets.

@titowoche30
Created November 18, 2019 23:59
Show Gist options
  • Select an option

  • Save titowoche30/eb93af1c24ba1b57cb1ca16e1b0838e7 to your computer and use it in GitHub Desktop.

Select an option

Save titowoche30/eb93af1c24ba1b57cb1ca16e1b0838e7 to your computer and use it in GitHub Desktop.
#Model
model = pyEnv.ConcreteModel()
#Indexes for the cities
model.M = pyEnv.RangeSet(n)
model.N = pyEnv.RangeSet(n)
#Index for the dummy variable u
model.U = pyEnv.RangeSet(2,n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment