Qiran Wu
- Total activity 6
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 1
Comments
Recent activity by Qiran Wu-
Great! Thank you!
-
Hi Jaromił, Model.write() is helpful, Thank you! For this constraint, y <= c*(1-x) what I want is y[0] <= c[0]*(1-x[0])y[1] <= c[1]*(1-x[1])y[2] <= c[2]*(1-x[2])... I know I can write m.addCon...
-
Thanks, Jaromił. This works. And I want to know if Gurobipy supports broadcast and element-wise multiplication. For example, I want to add a constraint m.addConstr(y <= c*(1-x)) where `y` and `x` a...
-
Hi Jaromił, I forgot to specify in the last layer the `W`'s shape is `(50,)`. Sorry for the misleading. Hope this code makes it more clear. output = m.addVar()m.addConstr(W[2] @ y[2] + b[2] == ou...