Skip to content

Instantly share code, notes, and snippets.

@upadhyan
Created October 19, 2022 04:09
Show Gist options
  • Save upadhyan/ba7b9e7f8f8e972df915204a394899d7 to your computer and use it in GitHub Desktop.
Save upadhyan/ba7b9e7f8f8e972df915204a394899d7 to your computer and use it in GitHub Desktop.
# OBJECTIVE
m.setObjective(i @ x + gp.quicksum(c @ y[:,k] * p[k] for k in range(K)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment