Skip to content

Instantly share code, notes, and snippets.

@upadhyan
Created October 19, 2022 04:14
Show Gist options
  • Save upadhyan/d15f33bc75e8de1e4576fbc080a55e10 to your computer and use it in GitHub Desktop.
Save upadhyan/d15f33bc75e8de1e4576fbc080a55e10 to your computer and use it in GitHub Desktop.
# CONSTRAINTS
## Installation Budget
m.addConstr(i @ x <= B)
## Space
m.addConstr(s @ x <= S)
## Meet demand in each scenario
m.addConstrs((
x + y[:,k] >= d_xi[:,k] for k in range(K)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment