Skip to content

Instantly share code, notes, and snippets.

@titowoche30
Created November 19, 2019 00:02
Show Gist options
  • Select an option

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

Select an option

Save titowoche30/349526432585fb3f3a728721c1fecc9f to your computer and use it in GitHub Desktop.
def obj_func(model):
return sum(model.x[i,j] * model.c[i,j] for i in model.N for j in model.M)
model.objective = pyEnv.Objective(rule=obj_func,sense=pyEnv.minimize)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment